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