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; }
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(); }
public RobotFactory(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position) : base(stateMgr, island, rts, "RF", position) { }
public RobotFactory(StateManager stateMgr, Island island, VanillaRTS rts) : base(stateMgr, island, rts, "RF") { }
public CrystalDrill(StateManager stateMgr, Island island, VanillaRTS rts) : base(stateMgr, island, rts, "CD") { }
public CrystalDrill(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position) : base(stateMgr, island, rts, "RF", position) { }
public Generator(StateManager stateMgr, Island island, VanillaRTS rts) : base(stateMgr, island, rts, "G") { }
public Generator(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position) : base(stateMgr, island, rts, "G", position) { }
public HeadQuarter(StateManager stateMgr, Island island, VanillaRTS rts) : base(stateMgr, island, rts, "HQ") { }
public HeadQuarter(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position) : base(stateMgr, island, rts, "HQ", position) { }
protected Building(StateManager stateMgr, Island island, VanillaRTS rts, string selection) : this(stateMgr, island, rts, selection, -Vector3.UNIT_SCALE) { }