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

Last change on this file since fea4b77 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: 796 bytes
RevLine 
[113d7cf]1package com.medievaltech.unit;
[b23048f]2
3import java.util.List;
4
5import android.graphics.Paint;
6import android.graphics.Point;
7
[fea4b77]8import com.medievaltech.advancewars.Enum.*;
9
[b23048f]10public class Mech extends Unit{
11 public Mech(Paint p)
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.