public void ActivateMonsters(int mapId, int playerId) { var player = this.mappingService.GetPlayerDtoById(playerId); var map = this.mappingService.GetDungeonDtoById(mapId); IScheduleable scheduleable = this.schedulingSystem.Get(); if (scheduleable is PlayerDTO) { this.IsPlayerTurn = true; this.schedulingSystem.Add(scheduleable); } else { var monsterDto = scheduleable as MonsterDTO; if (monsterDto != null) { var behavior = new StandardMoveAndAttack(); behavior.Act(monsterDto, map, player, this); this.schedulingSystem.Add(monsterDto); } this.ActivateMonsters(1, 1); } }
public virtual void PerformAction() { if (AreaControlled.Count == 1) { var behaviour = new StandardMoveAndAttack(); behaviour.Act(this); } else { var behaviour = new BigActorMoveAndAttack(); behaviour.Act(this); } }
public override void PerformAction(CommandSystem commandSystem) { var mimicRevealedBehavior = new StandardMoveAndAttack(); var mimicDisguisedBehavior = new MimicDisguised(); if (_didReveal == false) { _didReveal = mimicDisguisedBehavior.Act(this, commandSystem); } else { mimicRevealedBehavior.Act(this, commandSystem); } }
public virtual void PerformAction(CommandSystem commandSystem) { if (TurnsAlerted != null && TurnsAlerted == 0 && !game.Player.inCombat(this)) { ChangeHealthBy(1); } if (Behavior == null) { Behavior = new StandardMoveAndAttack(); } Behavior.Act(this, commandSystem, game); }
public virtual void PerformAction(CommandSystem commandSystem) { StandardMoveAndAttack behavior = new StandardMoveAndAttack(); behavior.Act(this, commandSystem); }
public virtual void PerformAction(CommandManager commandManager) { var behavior = new StandardMoveAndAttack(); behavior.Act(this, commandManager); }
public virtual void PerformAction() { var behavior = new StandardMoveAndAttack(); behavior.Act(this, Game.CombatSystem); }