public void SetAllMovementPoints(int playerID) { foreach (GameObject entity in entityStorage.GetPlayerEntityList(playerID)) { entityStats.SetCurrMovementPoint(entity, entityStats.GetCurrMaxMovementPoint(entity)); } }
public void SetAllMovementPoints() { foreach (List <GameObject> playerEntityList in entityStorage.activePlayersEntityList) { foreach (GameObject entity in playerEntityList) { entityStats.SetCurrMovementPoint(entity, entityStats.GetCurrMaxMovementPoint(entity)); } } }
//find movement points void GetMovementInfo(GameObject attacker) { attackerMovepoint = entityStats.GetCurrMaxMovementPoint(attacker); attackerCurrMovepoint = entityStats.GetCurrMovementPoint(attacker); }
void GetAIInfo(GameObject eEntity) { aicurrattpoint = entityStats.GetCurrAttackPoint(eEntity); aimovepoint = entityStats.GetCurrMaxMovementPoint(eEntity); aicurrmovepoint = entityStats.GetCurrMovementPoint(eEntity); }