Last change
on this file since 99433bb was fea4b77, checked in by dportnoy <devnull@…>, 13 years ago |
Implemented turn and support for computer-controller movement of units. Right now, the computer moves a specific unit down one square when its his turn.
|
-
Property mode
set to
100644
|
File size:
798 bytes
|
Line | |
---|
1 | package com.medievaltech.unit;
|
---|
2 |
|
---|
3 | import java.util.List;
|
---|
4 |
|
---|
5 | import android.graphics.Paint;
|
---|
6 | import android.graphics.Point;
|
---|
7 |
|
---|
8 | import com.medievaltech.advancewars.Enum.*;
|
---|
9 |
|
---|
10 | public class Recon extends Unit{
|
---|
11 | public Recon(Paint p)
|
---|
12 | {
|
---|
13 | super(p);
|
---|
14 |
|
---|
15 | move = 8;
|
---|
16 |
|
---|
17 | type = UnitType.LAND;
|
---|
18 | minAttackRange = 1;
|
---|
19 | maxAttackRange = 1;
|
---|
20 | }
|
---|
21 |
|
---|
22 | @Override
|
---|
23 | public void move(Point point) {
|
---|
24 | // TODO Auto-generated method stub
|
---|
25 |
|
---|
26 | }
|
---|
27 |
|
---|
28 | @Override
|
---|
29 | public void attack(Point point) {
|
---|
30 | // TODO Auto-generated method stub
|
---|
31 |
|
---|
32 | }
|
---|
33 |
|
---|
34 | @Override
|
---|
35 | public List<Point> getMovementRange() {
|
---|
36 | return super.getMovementRange();
|
---|
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.