public BuildingManager(StateManager stateMgr, Island island, RTSManager RTSMgr) { this.mStateMgr = stateMgr; this.mIsland = island; this.mRTSManager = RTSMgr; this.Buildings = new Dictionary<Vector3, Building>(); }
protected VanillaRTS(StateManager stateMgr, RTSManager RTSMgr) { this.mStateMgr = stateMgr; this.mRTSMgr = RTSMgr; this.Buildings = new List <Building>(); this.mCrystals = 150; this.CrystalSpeed = 0; }
public AIRTS(StateManager stateMgr, RTSManager RTSMgr) : base(stateMgr, RTSMgr) { this.Faction = Faction.Red; this.mWorld = this.mStateMgr.MainState.World; Vector3 isldSize = this.mWorld.getIsland().getSize() * 16; this.mRandom = new Random(); int x = this.mRandom.Next(7, (int)isldSize.x); int z = this.mRandom.Next(7, (int)isldSize.z); this.mAverageHeight = this.mWorld.getSurfaceHeight(x, z); this.mBasePos = new Vector3(x, this.mAverageHeight, z); this.mCircle = new Circle(mBasePos); this.mNextBuilding = ""; this.mNbUpdateSkipped = 0; this.NbRobotsAllowedToAdd = 0; this.NbBuildingsAllowedToAdd = 4; }
public PlayerRTS(StateManager stateMgr, RTSManager RTSMgr) : base(stateMgr, RTSMgr) { this.Faction = Faction.Blue; }