source: advance-wars/src/com/medievaltech/game/Soldier.java@ ebaddd9

Last change on this file since ebaddd9 was ebaddd9, checked in by dportnoy <devnull@…>, 14 years ago

Added code to draw a unit's possible movement options on the map.

  • Property mode set to 100644
File size: 677 bytes
Line 
1package com.medievaltech.game;
2
3import java.util.List;
4
5import android.graphics.Paint;
6import android.graphics.Point;
7
8public class Soldier extends Unit{
9 public Soldier(Paint p) {
10 super(p);
11
12 move = 2;
13 }
14
15 @Override
16 public void move(Point point) {
17 // TODO Auto-generated method stub
18
19 }
20
21 @Override
22 public void attack(Point point) {
23 // TODO Auto-generated method stub
24
25 }
26
27 @Override
28 public List<Point> getMovementRange() {
29 return super.getMovementRange();
30 }
31
32 @Override
33 public void die()
34 {
35
36 }
37
38 @Override
39 public List<Point> getAttackRange() {
40 // TODO Auto-generated method stub
41 return null;
42 }
43
44
45}
Note: See TracBrowser for help on using the repository browser.