예제 #1
0
        public void PrepareForCombat(RenderingPosition renderingPosition)
        {
            CombatStats = new PokemonCombatStats(CurrentStats);

            // All enemies always start at max health
            if (RenderingPosition == RenderingPosition.Enemy)
                CurrentHealth = CurrentStats[Stats.Health];

            RenderingPosition = renderingPosition;
            switch (RenderingPosition)
            {
                case RenderingPosition.Ally:
                    Position = AllyStartPosition;
                    break;
                case RenderingPosition.Enemy:
                    Position = EnemyStartPosition;
                    break;
            }
        }
예제 #2
0
 /// <summary>
 /// Sets up positions in preparation for combat
 /// </summary>
 /// <param name="renderingPosition"></param>
 public void PrepareForCombat(RenderingPosition renderingPosition)
 {
     Visible = true;
     RenderingPosition = renderingPosition;
     switch (renderingPosition)
     {
         case RenderingPosition.Ally:
             Position = AllyPosition;
             break;
         case RenderingPosition.Enemy:
             Position = EnemyStartPosition;
             break;
     }
 }