GetFreePlayerAmmount¶
This method returns the amount of playerdata
that are considered free. It belongs to MainManager.
public static int GetFreePlayerAmmount()
public static int GetFreePlayerAmmount(bool hponly)
This amount includes all player party members have the following criteria:
cantmove
is 0 or below (at least one action is available)hp
is above 0 (the player isn't dead)- It does not have any of the following conditions:
However, if hponly
is true, only the hp
check above is done. The only time true is sent is from AdvanceMainTurn when setting availableplayers
to decide if DeadParty needs to be called after advancing each player party member's actor turns.