Last change
on this file since c3ad11c was c3ad11c, checked in by dportnoy <devnull@…>, 13 years ago |
Units are now colored based on the player that controls them. The controlling player is specified in the unit's constructor.
|
-
Property mode
set to
100644
|
File size:
769 bytes
|
Line | |
---|
1 | package com.medievaltech.unit;
|
---|
2 |
|
---|
3 | import java.util.List;
|
---|
4 |
|
---|
5 | import android.graphics.Point;
|
---|
6 |
|
---|
7 | import com.medievaltech.advancewars.Enum.*;
|
---|
8 |
|
---|
9 | public class SmTank extends Unit{
|
---|
10 | public SmTank(Player p)
|
---|
11 | {
|
---|
12 | super(p);
|
---|
13 |
|
---|
14 | move = 7;
|
---|
15 |
|
---|
16 | type = UnitType.LAND;
|
---|
17 | minAttackRange = 1;
|
---|
18 | maxAttackRange = 1;
|
---|
19 | }
|
---|
20 |
|
---|
21 | @Override
|
---|
22 | public void move(Point point) {
|
---|
23 | // TODO Auto-generated method stub
|
---|
24 |
|
---|
25 | }
|
---|
26 |
|
---|
27 | @Override
|
---|
28 | public void attack(Point point) {
|
---|
29 | // TODO Auto-generated method stub
|
---|
30 |
|
---|
31 | }
|
---|
32 |
|
---|
33 | @Override
|
---|
34 | public List<Point> getMovementRange() {
|
---|
35 | return super.getMovementRange();
|
---|
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.