public Unit(EUnitColor color, Tile tile) // Maybe do a method for it. { this.color = color; this.colplace = tile.colplace; this.rowplace = tile.rowplace; currentTile = tile; }
public void CreateUnit(EUnitType type, EUnitColor color, Tile tile) { switch (type) { case EUnitType.Infantry: units.Add(new Infantry(color, tile)); break; default: break; } }
Player(EUnitColor color) { this.color = color; }
public Infantry(EUnitColor color, Tile tile) : base(color, tile) { type = EUnitType.Infantry; hitpoints = 100; weapon = EWeaponType.MachineGun; }