public Avatar(Faction faction, AvatarClass avatarClass, String imagePath) : base() { Faction = faction; _avatarClass = avatarClass; ImagePath = imagePath; movementVector = new Point(0, 0); TurnState = new AvatarTurnState(); ActualBodyPointsRemaining = avatarClass.BaseMaximumBodyPoints; ActualMindPointsRemaining = avatarClass.BaseMaximumMindPoints; _goldInPossession = 0; _equippedItems = new List<Item>(); _backpackItems = new List<Item>(); }
private Boolean MayTakeAction(TurnStepAction action, AvatarTurnState turnState) { if (action.RequiresAction && turnState.HasTakenAction) { return false; } // Cannot use this action if the player has already taken his action this turn. else if (action.RequiresMovement && turnState.MovementPointsLeft <= 0) { return false; } // Cannot use this action if the player has no movement points left this turn. return true; }