source:
advance-wars/src/com/medievaltech/unit/Soldier.java@
c3ad11c
Last change on this file since c3ad11c was c3ad11c, checked in by , 13 years ago | |
---|---|
|
|
File size: 771 bytes |
Rev | Line | |
---|---|---|
[113d7cf] | 1 | package com.medievaltech.unit; |
[a0f5455] | 2 | |
3 | import java.util.List; | |
4 | ||
5 | import android.graphics.Point; | |
6 | ||
[fea4b77] | 7 | import com.medievaltech.advancewars.Enum.*; |
8 | ||
[a0f5455] | 9 | public class Soldier extends Unit{ |
[c3ad11c] | 10 | public Soldier(Player p) |
[78d3c6f] | 11 | { |
[1a1e8c7] | 12 | super(p); |
[ebaddd9] | 13 | |
[b23048f] | 14 | move = 3; |
[78d3c6f] | 15 | |
[fea4b77] | 16 | type = UnitType.LAND; |
[78d3c6f] | 17 | minAttackRange = 1; |
18 | maxAttackRange = 1; | |
[1a1e8c7] | 19 | } |
20 | ||
[a0f5455] | 21 | @Override |
[a79ce1b] | 22 | public void move(Point point) { |
[a0f5455] | 23 | // TODO Auto-generated method stub |
[a79ce1b] | 24 | |
[a0f5455] | 25 | } |
26 | ||
27 | @Override | |
[a79ce1b] | 28 | public void attack(Point point) { |
[a0f5455] | 29 | // TODO Auto-generated method stub |
[a79ce1b] | 30 | |
[a0f5455] | 31 | } |
32 | ||
33 | @Override | |
[ebaddd9] | 34 | public List<Point> getMovementRange() { |
35 | return super.getMovementRange(); | |
[a0f5455] | 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.