enhance entity state modes
This commit is contained in:
@@ -2,6 +2,7 @@ package org.project.constants.gameConstant;
|
||||
|
||||
public enum EntityState {
|
||||
ALIVE,
|
||||
DOWNED,
|
||||
DEAD,
|
||||
FROZEN
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ public abstract class Entity implements IDamageable, IHealable, IDefendable, IFi
|
||||
|
||||
@Override
|
||||
public ArrayList<FightMoves> GetAvailableMoves() {
|
||||
if (GetState() == EntityState.FROZEN) return new ArrayList<>(){};
|
||||
if (GetState() == EntityState.FROZEN || GetState() == EntityState.DEAD) return new ArrayList<>(){};
|
||||
|
||||
ArrayList<FightMoves> result = new ArrayList<>();
|
||||
result.add(FightMoves.DEFEND);
|
||||
|
||||
Reference in New Issue
Block a user