Package com.prineside.tdi2.systems
Class GameplayModSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.GameplayModSystem
- All Implemented Interfaces:
 Disposable,KryoSerializable
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields inherited from class com.prineside.tdi2.Registrable
S - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidactivateMod(GameplayMod mod, String activatedBy) booleanvoiddispose()Releases all resources of this object.<T extends GameplayMod>
GameplayModSystem.ActiveModgetActiveMod(Class<T> type) <T extends GameplayMod>
GameplayModSystem.ActiveModgetActiveMod(Class<T> type, String source) getModRandom(int seed) voidvoidMethods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, postSetup, postStateRestore, profileUpdate, setup, updateMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered 
- 
Constructor Details
- 
GameplayModSystem
public GameplayModSystem() 
 - 
 - 
Method Details
- 
write
- Specified by:
 writein interfaceKryoSerializable- Overrides:
 writein classRegistrable
 - 
read
- Specified by:
 readin interfaceKryoSerializable- Overrides:
 readin classRegistrable
 - 
affectsGameState
public boolean affectsGameState()- Specified by:
 affectsGameStatein classGameSystem
 - 
getModRandom
- Parameters:
 seed- must be a static value for some particular mod. It will be mixed with map's seed and will always produce the same generator- Returns:
 - instance of random number generator specifically for GameplayMod#register()
 
 - 
getActiveMods
 - 
getActiveMod
@Null public <T extends GameplayMod> GameplayModSystem.ActiveMod getActiveMod(Class<T> type, String source)  - 
getActiveMod
 - 
activateMod
 - 
getSystemName
- Specified by:
 getSystemNamein classGameSystem
 - 
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.DisposableReleases all resources of this object.- Specified by:
 disposein interfaceDisposable- Overrides:
 disposein classGameSystem
 
 -