Package mindustry.game
Class FogControl
java.lang.Object
mindustry.game.FogControl
- All Implemented Interfaces:
SaveFileReader.CustomChunk
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forceUpdate
(Team team, mindustry.gen.Building build) getDiscovered
(Team team) boolean
isDiscovered
(Team team, int x, int y) boolean
boolean
isVisibleTile
(Team team, int x, int y) void
void
resetFog()
boolean
void
update()
void
write
(DataOutput stream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface mindustry.io.SaveFileReader.CustomChunk
writeNet
-
Constructor Details
-
FogControl
public FogControl()
-
-
Method Details
-
getDiscovered
-
isDiscovered
-
isVisible
-
isVisibleTile
-
resetFog
public void resetFog() -
forceUpdate
-
update
public void update() -
write
- Specified by:
write
in interfaceSaveFileReader.CustomChunk
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSaveFileReader.CustomChunk
- Throws:
IOException
-
shouldWrite
public boolean shouldWrite()- Specified by:
shouldWrite
in interfaceSaveFileReader.CustomChunk
- Returns:
- whether this chunk is enabled at all
-