예제 #1
0
파일: Units.cs 프로젝트: Wirdal/MONOWar
 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;
 }
예제 #2
0
파일: Managers.cs 프로젝트: Wirdal/MONOWar
        public void CreateUnit(EUnitType type, EUnitColor color, Tile tile)
        {
            switch (type)
            {
            case EUnitType.Infantry:
                units.Add(new Infantry(color, tile));
                break;

            default:
                break;
            }
        }
예제 #3
0
파일: Player.cs 프로젝트: Wirdal/MONOWar
 Player(EUnitColor color)
 {
     this.color = color;
 }
예제 #4
0
파일: Units.cs 프로젝트: Wirdal/MONOWar
 public Infantry(EUnitColor color, Tile tile) : base(color, tile)
 {
     type      = EUnitType.Infantry;
     hitpoints = 100;
     weapon    = EWeaponType.MachineGun;
 }