|
Last change
on this file since 511177b was c3ad11c, checked in by dportnoy <devnull@…>, 14 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:
775 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 Artillery extends Unit{
|
|---|
| 10 | public Artillery(Player p)
|
|---|
| 11 | {
|
|---|
| 12 | super(p);
|
|---|
| 13 |
|
|---|
| 14 | move = 3;
|
|---|
| 15 |
|
|---|
| 16 | type = UnitType.LAND;
|
|---|
| 17 | minAttackRange = 2;
|
|---|
| 18 | maxAttackRange = 4;
|
|---|
| 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.