예제 #1
0
 public CharacterInfo(string name, VanillaRTS rts, bool isPlayer = false) : this()
 {
     this.mId = mLastPlayerId;
     mLastPlayerId++;
     this.mName       = name;
     this.RTS         = rts;
     this.Faction     = rts != null ? rts.Faction : Faction.Red;
     this.mSpawnPoint = Vector3.ZERO;
     this.mIsPlayer   = isPlayer;
     this.mLife       = this.mIsPlayer ? VanillaPlayer.DEFAULT_PLAYER_LIFE : VanillaNonPlayer.DEFAULT_NPC_LIFE;
     this.mMana       = this.mIsPlayer ? VanillaPlayer.DEFAULT_PLAYER_MANA : 0;
 }
예제 #2
0
 protected Building(StateManager stateMgr, Island island, VanillaRTS rts, string selection, Vector3 position)
 {
     this.mStateMgr = stateMgr;
     this.mIsland = island;
     this.RTS = rts;
     this.mColoredBlock = (byte)((this.RTS.Faction == Faction.Blue) ? 32 : 31);
     this.NeededRessources = new Dictionary<byte, int>();
     this.Position = position == -Vector3.UNIT_SCALE ? this.mStateMgr.MainState.User.SelectedBlockPos : position;
     this.Selection = selection;
     this.NeededRessources = this.mStateMgr.MainState.BuildingMgr.GetNeededRessources(this.Selection);
     this.Init();
 }
예제 #3
0
 public CharacterInfo(string name, VanillaRTS rts, bool isPlayer = false)
     : this()
 {
     this.mId = mLastPlayerId;
     mLastPlayerId++;
     this.mName = name;
     this.RTS = rts;
     this.Faction = rts != null ? rts.Faction : Faction.Red;
     this.mSpawnPoint = Vector3.ZERO;
     this.mIsPlayer = isPlayer;
     this.mLife = this.mIsPlayer ? VanillaPlayer.DEFAULT_PLAYER_LIFE : VanillaNonPlayer.DEFAULT_NPC_LIFE;
     this.mMana = this.mIsPlayer ? VanillaPlayer.DEFAULT_PLAYER_MANA : 0;
 }
예제 #4
0
 public RobotFactory(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position)
     : base(stateMgr, island, rts, "RF", position)
 {
 }
예제 #5
0
 public RobotFactory(StateManager stateMgr, Island island, VanillaRTS rts)
     : base(stateMgr, island, rts, "RF")
 {
 }
예제 #6
0
 public CrystalDrill(StateManager stateMgr, Island island, VanillaRTS rts)
     : base(stateMgr, island, rts, "CD")
 {
 }
예제 #7
0
 public CrystalDrill(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position)
     : base(stateMgr, island, rts, "RF", position)
 {
 }
예제 #8
0
 public Generator(StateManager stateMgr, Island island, VanillaRTS rts)
     : base(stateMgr, island, rts, "G")
 {
 }
예제 #9
0
 public Generator(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position)
     : base(stateMgr, island, rts, "G", position)
 {
 }
예제 #10
0
 public HeadQuarter(StateManager stateMgr, Island island, VanillaRTS rts)
     : base(stateMgr, island, rts, "HQ")
 {
 }
예제 #11
0
 public HeadQuarter(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position)
     : base(stateMgr, island, rts, "HQ", position)
 {
 }
예제 #12
0
 protected Building(StateManager stateMgr, Island island, VanillaRTS rts, string selection)
     : this(stateMgr, island, rts, selection, -Vector3.UNIT_SCALE)
 {
 }