Package com.prineside.tdi2.systems
Class AbilitySystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.AbilitySystem
- All Implemented Interfaces:
 Disposable,KryoSerializable
- 
Field Summary
FieldsModifier and TypeFieldDescriptionint[]Fields inherited from class com.prineside.tdi2.Registrable
S - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddAbilityCharges(int idx, int cnt) booleanvoidПри повторном нажатии на кнопку навыка (отменить применение)voiddispose()Releases all resources of this object.voidvoiddrawBatchAdditive(Batch batch, float deltaTime) intintgetAvailableAbilities(int idx) intgetAvailableAbilitiesByType(AbilityType abilityType) intintgetEnergyCost(AbilityType abilityType) floatintfloatvoidPerforms the final configuration of the system.voidvoidvoidregisterAndConfigure(Ability ability, int x, int y, double mdps) registerConfigureAndStartAbility(AbilityType abilityType, int x, int y, double mdps) voidsetup()Performs the initial configuration of the system.startAbility(Ability ability) voidstartUsingAbility(AbilityType abilityType) При нажатии на кнопку навыкаvoidupdate(float deltaTime) voidMethods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, profileUpdateMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered 
- 
Field Details
- 
activeAbilities
 - 
abilitiesConfiguration
 - 
abilitiesUsed
public int[] abilitiesUsed 
 - 
 - 
Constructor Details
- 
AbilitySystem
public AbilitySystem() 
 - 
 - 
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
 - 
setup
public void setup()Description copied from class:GameSystemPerforms the initial configuration of the system. At the moment of call, systemProvider already contains all objects of systems.- Overrides:
 setupin classGameSystem
 - 
postStateRestore
public void postStateRestore()- Overrides:
 postStateRestorein classGameSystem
 - 
postSetup
public void postSetup()Description copied from class:GameSystemPerforms the final configuration of the system. At the moment of call, all systems are already loaded and setup(), all listeners are already added.- Overrides:
 postSetupin classGameSystem
 - 
getAbilitySlotCount
public int getAbilitySlotCount() - 
getUiCurrentlyUsingAbility
- Returns:
 - null, если не выделена
 
 - 
startUsingAbility
При нажатии на кнопку навыка - 
cancelUsingAbility
public void cancelUsingAbility()При повторном нажатии на кнопку навыка (отменить применение) - 
getEnergy
public int getEnergy() - 
getNextEnergyGenerationTime
public float getNextEnergyGenerationTime() - 
getAvailableAbilitiesByType
 - 
getAvailableAbilities
public int getAvailableAbilities(int idx)  - 
addAbilityCharges
public void addAbilityCharges(int idx, int cnt)  - 
registerConfigureAndStartAbility
 - 
startAbility
 - 
registerAndConfigure
 - 
getEnergyCost
 - 
update
public void update(float deltaTime) - Overrides:
 updatein classGameSystem
 - 
getSystemName
- Specified by:
 getSystemNamein classGameSystem
 - 
getMaxEnergy
public int getMaxEnergy() - 
getEnergyRegenerationTime
public float getEnergyRegenerationTime() - 
draw
 - 
drawBatchAdditive
 - 
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
 
 -