source: advance-wars/src/com/medievaltech/unit/Soldier.java@ 511177b

Last change on this file since 511177b was c3ad11c, checked in by dportnoy <devnull@…>, 13 years ago

Units are now colored based on the player that controls them. The controlling player is specified in the unit's constructor.

  • Property mode set to 100644
File size: 771 bytes
RevLine 
[113d7cf]1package com.medievaltech.unit;
[a0f5455]2
3import java.util.List;
4
5import android.graphics.Point;
6
[fea4b77]7import com.medievaltech.advancewars.Enum.*;
8
[a0f5455]9public class Soldier extends Unit{
[c3ad11c]10 public Soldier(Player p)
[78d3c6f]11 {
[1a1e8c7]12 super(p);
[ebaddd9]13
[b23048f]14 move = 3;
[78d3c6f]15
[fea4b77]16 type = UnitType.LAND;
[78d3c6f]17 minAttackRange = 1;
18 maxAttackRange = 1;
[1a1e8c7]19 }
20
[a0f5455]21 @Override
[a79ce1b]22 public void move(Point point) {
[a0f5455]23 // TODO Auto-generated method stub
[a79ce1b]24
[a0f5455]25 }
26
27 @Override
[a79ce1b]28 public void attack(Point point) {
[a0f5455]29 // TODO Auto-generated method stub
[a79ce1b]30
[a0f5455]31 }
32
33 @Override
[ebaddd9]34 public List<Point> getMovementRange() {
35 return super.getMovementRange();
[a0f5455]36 }
37
38 @Override
39 public void die()
40 {
41
42 }
43
44 @Override
45 public List<Point> getAttackRange() {
46 // TODO Auto-generated method stub
47 return null;
48 }
49
50
51}
Note: See TracBrowser for help on using the repository browser.