Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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);
 }