Changeset a79ce1b in advance-wars for src/com


Ignore:
Timestamp:
Feb 1, 2011, 11:37:15 PM (14 years ago)
Author:
Avil <devnull@…>
Branches:
master
Children:
bbee931
Parents:
54e0965
Message:

Added some attributes to soldier class

Location:
src/com/example/game
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/com/example/game/Soldier.java

    r54e0965 ra79ce1b  
    88
    99        @Override
    10         public boolean move(Point point) {
     10        public void move(Point point) {
    1111                // TODO Auto-generated method stub
    12                 return false;
     12               
    1313        }
    1414
    1515        @Override
    16         public boolean attack(Point point) {
     16        public void attack(Point point) {
    1717                // TODO Auto-generated method stub
    18                 return false;
     18       
    1919        }
    2020
     
    3636                return null;
    3737        }
     38
     39        @Override
     40        public void draw() {
     41                // TODO Auto-generated method stub
     42               
     43        }
    3844       
    3945               
  • src/com/example/game/Unit.java

    r54e0965 ra79ce1b  
    22
    33import java.util.List;
    4 
    54import android.graphics.Point;
    65
     
    3231        public Point location;
    3332       
    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        }
    3641       
    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        }
    3950       
     51        public abstract void draw();
    4052        public  void die()
    4153        {
Note: See TracChangeset for help on using the changeset viewer.