Changeset a79ce1b in advance-wars
- Timestamp:
- Feb 1, 2011, 11:37:15 PM (14 years ago)
- Branches:
- master
- Children:
- bbee931
- Parents:
- 54e0965
- Location:
- src/com/example/game
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/com/example/game/Soldier.java
r54e0965 ra79ce1b 8 8 9 9 @Override 10 public booleanmove(Point point) {10 public void move(Point point) { 11 11 // TODO Auto-generated method stub 12 return false;12 13 13 } 14 14 15 15 @Override 16 public booleanattack(Point point) {16 public void attack(Point point) { 17 17 // TODO Auto-generated method stub 18 return false;18 19 19 } 20 20 … … 36 36 return null; 37 37 } 38 39 @Override 40 public void draw() { 41 // TODO Auto-generated method stub 42 43 } 38 44 39 45 -
src/com/example/game/Unit.java
r54e0965 ra79ce1b 2 2 3 3 import java.util.List; 4 5 4 import android.graphics.Point; 6 5 … … 32 31 public Point location; 33 32 34 public abstract boolean move(Point point); 35 public abstract boolean attack(Point point); 33 public void move(Point point) 34 { 35 36 } 37 public void attack(Point point) 38 { 39 40 } 36 41 37 public abstract List<Point> getRange(); 38 public abstract List<Point> getAttackRange(); 42 public List<Point> getRange() 43 { 44 return null; 45 } 46 public List<Point> getAttackRange() 47 { 48 return null; 49 } 39 50 51 public abstract void draw(); 40 52 public void die() 41 53 {
Note:
See TracChangeset
for help on using the changeset viewer.