public Peon(Game game, Vector2 position, Graph graph, AIAgent agent) : base(game, graph, agent, agent.RenderColor) { spriteName = "peon"; speed = 1f; maxSpeed = 1f; maxAccel = .07f; stopRadius = 2f; slowRadius = 5f; this.position = position; graph.SetNodeBlocked(position); goldText = new TextRepresentation(game, position); Game.Components.Add(goldText); }
public Peon(Game game, Vector2 position, Graph graph, AIAgent agent) : base(game, graph, agent, agent.RenderColor) { spriteName = "peon"; speed = 1f; maxSpeed = 1f; maxAccel = .07f; stopRadius = 2f; slowRadius = 5f; this.position = position; graph.SetNodeBlocked(position); goldText = new TextRepresentation(game, position); Game.Components.Add(goldText); }
public Soldier(Game game, Vector2 position, Graph graph, AIAgent agent) : base(game, graph, agent, agent.RenderColor) { spriteName = "Marine"; maxHealth = 100; health = maxHealth; speed = 1.5f; maxSpeed = 1.5f; maxAccel = .07f; stopRadius = 2f; slowRadius = 5f; this.position = position; graph.SetNodeBlocked(position); healthText = new TextRepresentation(game, position); game.Components.Add(healthText); }
public Soldier(Game game, Vector2 position, Graph graph, AIAgent agent) : base(game, graph, agent, agent.RenderColor) { spriteName = "Marine"; maxHealth = 100; health = maxHealth; speed = 1.5f; maxSpeed = 1.5f; maxAccel = .07f; stopRadius = 2f; slowRadius = 5f; this.position = position; graph.SetNodeBlocked(position); healthText = new TextRepresentation(game, position); game.Components.Add(healthText); }