private GameObjectMan(int reserveNum = 3, int reserveGrow = 1) : base() { this.BaseInitialize(reserveNum, reserveGrow); this.poNodeCompare = new GameObjectNode(); this.poNullGameObject = new NullGameObject(); this.poNodeCompare.Set(this.poNullGameObject); }
private GameObjectManager() : base() { //class fields this.poNullGameObject = new NullGameObject(); this.poNodeCompare = new GameObjectNode(); this.poNodeCompare.poGameObj = this.poNullGameObject; }
private GameObjectManager() : base() { GameObjectManager.pActiveMan = null; GameObjectManager.poNodeCompare = new GameObjectNode(); GameObjectManager.poNullGameObject = new NullGameObject(); GameObjectManager.poNodeCompare.pGameObj = GameObjectManager.poNullGameObject; }
private GameObjectNodeManager(int deltaRefillCount = 3, int prefillCount = 5) : base(deltaRefillCount, prefillCount) { // this.cRoot = new PCSTree(); // Debug.Assert(this.cRoot != null); GameObject gameObject = new NullGameObject(); Debug.Assert(gameObject != null); cGameObjNodeRef.setGameObject(gameObject); }
//---------------------------------------------------------------------------------- // Constructor //---------------------------------------------------------------------------------- public GameObjectManager(int initReserve = 3, int growthRate = 1) : base() { // abstract manager fields this.baseInitialize(initReserve, growthRate); //class fields this.poNullGameObject = new NullGameObject(); this.poNodeCompare = new GameObjectNode(); this.poNodeCompare.poGameObj = this.poNullGameObject; }
private GameObjectManager(int numNodes = 3, int growthSize = 1) : base(numNodes, growthSize) { poNodeCompare = new GameObjectNode(); Debug.Assert(poNodeCompare != null); this.poNullGameObject = new NullGameObject(); Debug.Assert(poNullGameObject != null); this.poNodeCompare.pGameObj = this.poNullGameObject; }
//---------------------------------------------------------------------- // Constructor / Destructor //---------------------------------------------------------------------- public GameObjectManager(int reserveNum = 3, int reserveGrow = 1) : base(reserveNum, reserveGrow) { // make sure values are ressonable Debug.Assert(reserveNum > 0); Debug.Assert(reserveGrow > 0); this.pGameObjectCompare = new GameObjectRef(); this.pNullGameObject = new NullGameObject(); this.pGameObjectCompare.SetGameObject(this.pNullGameObject); }
private GameObjectManager(int startReserveSize = 3, int refillSize = 1) : base(startReserveSize, refillSize) { //default null game object as ref node to avoid breaking find; GameObject pGameObj = new NullGameObject(); Debug.Assert(pGameObj != null); GameObjectManager.pRefNode.pGameObj = pGameObj; //Todo - GameObjectManager Constructor - used in remove: HACK HACK, need a better way this.pRootTree = new PCSTree(); //make sure tree and its root were created Debug.Assert(this.pRootTree != null); Debug.Assert(this.pRootTree.GetRoot() != null); }
//----------------------------------------------------------------------------------------- //visit null game object //------------------------------------- public virtual void VisitNullGameObject(NullGameObject n) { // no differed to subcass Debug.WriteLine("Visit by NullGameObject not implemented"); Debug.Assert(false); }
public virtual void VisitNullGameObject(NullGameObject n) { Debug.Assert(false); }
public virtual void visitNullGameObject(NullGameObject n) { }