source: advance-wars/src/com/medievaltech/unit/Mech.java@ bb2fa26

Last change on this file since bb2fa26 was 41c11dd, checked in by dportnoy <devnull@…>, 13 years ago

Added cities to the game, moved the map to a new static class, and added incomplete support for capturing cities with soldiers.

  • Property mode set to 100644
File size: 810 bytes
RevLine 
[113d7cf]1package com.medievaltech.unit;
[b23048f]2
3import java.util.List;
4
5import android.graphics.Point;
6
[41c11dd]7import com.medievaltech.advancewars.Player;
[fea4b77]8import com.medievaltech.advancewars.Enum.*;
9
[b23048f]10public class Mech extends Unit{
[c3ad11c]11 public Mech(Player p)
[b23048f]12 {
13 super(p);
14
15 move = 2;
16
[fea4b77]17 type = UnitType.LAND;
[b23048f]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.