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