Changeset c3ad11c in advance-wars for src/com/medievaltech/unit
- Timestamp:
- Aug 26, 2011, 9:54:05 PM (13 years ago)
- Branches:
- master
- Children:
- 511177b
- Parents:
- 99433bb
- Location:
- src/com/medievaltech/unit
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
src/com/medievaltech/unit/Artillery.java
r99433bb rc3ad11c 3 3 import java.util.List; 4 4 5 import android.graphics.Paint;6 5 import android.graphics.Point; 7 6 … … 9 8 10 9 public class Artillery extends Unit{ 11 public Artillery(P aintp)10 public Artillery(Player p) 12 11 { 13 12 super(p); -
src/com/medievaltech/unit/Mech.java
r99433bb rc3ad11c 3 3 import java.util.List; 4 4 5 import android.graphics.Paint;6 5 import android.graphics.Point; 7 6 … … 9 8 10 9 public class Mech extends Unit{ 11 public Mech(P aintp)10 public Mech(Player p) 12 11 { 13 12 super(p); -
src/com/medievaltech/unit/Recon.java
r99433bb rc3ad11c 3 3 import java.util.List; 4 4 5 import android.graphics.Paint;6 5 import android.graphics.Point; 7 6 … … 9 8 10 9 public class Recon extends Unit{ 11 public Recon(P aintp)10 public Recon(Player p) 12 11 { 13 12 super(p); -
src/com/medievaltech/unit/SmTank.java
r99433bb rc3ad11c 3 3 import java.util.List; 4 4 5 import android.graphics.Paint;6 5 import android.graphics.Point; 7 6 … … 9 8 10 9 public class SmTank extends Unit{ 11 public SmTank(P aintp)10 public SmTank(Player p) 12 11 { 13 12 super(p); -
src/com/medievaltech/unit/Soldier.java
r99433bb rc3ad11c 3 3 import java.util.List; 4 4 5 import android.graphics.Paint;6 5 import android.graphics.Point; 7 6 … … 9 8 10 9 public class Soldier extends Unit{ 11 public Soldier(P aintp)10 public Soldier(Player p) 12 11 { 13 12 super(p); -
src/com/medievaltech/unit/Transport.java
r99433bb rc3ad11c 1 1 package com.medievaltech.unit; 2 3 import android.graphics.Paint;4 2 5 3 public abstract class Transport extends Unit { 6 4 public Unit storedUnit; 7 5 8 public Transport(P aintp) {6 public Transport(Player p) { 9 7 super(p); 10 8 } -
src/com/medievaltech/unit/Unit.java
r99433bb rc3ad11c 8 8 9 9 public abstract class Unit { 10 private Paint p;11 12 10 public UnitType type; 13 //public Player owner;11 public Player owner; 14 12 15 13 public int maxHealth; … … 26 24 public Point location; 27 25 28 public Unit(P aintp)26 public Unit(Player p) 29 27 { 30 this.p = p; 28 p.addUnit(this); 29 30 owner = p; 31 31 maxHealth = 10; 32 32 currentHealth = 10; 33 34 33 } 35 34 … … 87 86 88 87 public void draw(Canvas c, int x, int y) { 89 c.drawCircle(x, y, 20, p);88 c.drawCircle(x, y, 20, owner.getColor()); 90 89 } 91 90 }
Note:
See TracChangeset
for help on using the changeset viewer.