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

Last change on this file since 6a639f7 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
RevLine 
[abe7b3d]1package com.medievaltech.game;
[a0f5455]2
3import java.util.List;
4
[1a1e8c7]5import android.graphics.Paint;
[a0f5455]6import android.graphics.Point;
7
8public class Soldier extends Unit{
[1a1e8c7]9 public Soldier(Paint p) {
10 super(p);
[ebaddd9]11
12 move = 2;
[1a1e8c7]13 }
14
[a0f5455]15 @Override
[a79ce1b]16 public void move(Point point) {
[a0f5455]17 // TODO Auto-generated method stub
[a79ce1b]18
[a0f5455]19 }
20
21 @Override
[a79ce1b]22 public void attack(Point point) {
[a0f5455]23 // TODO Auto-generated method stub
[a79ce1b]24
[a0f5455]25 }
26
27 @Override
[ebaddd9]28 public List<Point> getMovementRange() {
29 return super.getMovementRange();
[a0f5455]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.