Changeset 78d3c6f in advance-wars


Ignore:
Timestamp:
Feb 5, 2011, 11:01:49 PM (14 years ago)
Author:
aluthra <devnull@…>
Branches:
master
Children:
b23048f
Parents:
b97a618
Message:

Minor changes to Unit and Soldier constructors

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

Legend:

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

    rb97a618 r78d3c6f  
    77
    88public class Soldier extends Unit{
    9         public Soldier(Paint p) {
     9        public Soldier(Paint p)
     10        {
    1011                super(p);
    1112               
    1213                move = 2;
     14               
     15                type = Type.LAND;
     16                minAttackRange = 1;
     17                maxAttackRange = 1;
    1318        }
    1419       
  • src/com/medievaltech/game/Unit.java

    rb97a618 r78d3c6f  
    3333        public Point location;
    3434       
    35         public Unit(Paint p) {
     35        public Unit(Paint p)
     36        {
    3637                this.p = p;
     38                maxHealth = 10;
     39                currentHealth = 10;
     40               
    3741        }
    3842       
Note: See TracChangeset for help on using the changeset viewer.