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

Last change on this file 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
Line 
1package com.medievaltech.unit;
2
3import java.util.List;
4
5import android.graphics.Point;
6
7import com.medievaltech.advancewars.Player;
8import com.medievaltech.advancewars.Enum.*;
9
10public class Mech extends Unit{
11 public Mech(Player p)
12 {
13 super(p);
14
15 move = 2;
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.