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
Line 
1package com.medievaltech.unit;
2
3import java.util.List;
4
5import android.graphics.Point;
6
7import com.medievaltech.advancewars.Enum.*;
8
9public class Soldier extends Unit{
10 public Soldier(Player p)
11 {
12 super(p);
13
14 move = 3;
15
16 type = UnitType.LAND;
17 minAttackRange = 1;
18 maxAttackRange = 1;
19 }
20
21 @Override
22 public void move(Point point) {
23 // TODO Auto-generated method stub
24
25 }
26
27 @Override
28 public void attack(Point point) {
29 // TODO Auto-generated method stub
30
31 }
32
33 @Override
34 public List<Point> getMovementRange() {
35 return super.getMovementRange();
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.