Codebreak.Service.World.Game.Entity.AbstractEntity.HasGameAction C# (CSharp) Метод

HasGameAction() публичный Метод

public HasGameAction ( GameActionTypeEnum actionType ) : bool
actionType GameActionTypeEnum
Результат bool
        public bool HasGameAction(GameActionTypeEnum actionType)
        {
            if (actionType == GameActionTypeEnum.MAP && MovementHandler != null)
                return MovementHandler.FieldType == FieldTypeEnum.TYPE_MAP && Map.GetEntity(Id) != null;
            if (actionType == GameActionTypeEnum.FIGHT && MovementHandler != null)
                return MovementHandler.FieldType == FieldTypeEnum.TYPE_FIGHT;
            return CurrentAction != null && CurrentAction.Type == actionType;
        }