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; } }
/// <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; } }