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