コード例 #1
0
        public void addObject(ObjectController controller)
        {
            DLink temp = managerHead;

            while (temp != null)
            {
                ((PlayerModeStatusManagerData)temp).getManager().add(controller);
                temp = temp.pNext;
            }
        }
コード例 #2
0
        public override void AddToActive(int column, int row, ObjectController gameObject)
        {
            if (this.activeColumns == null)
            {
                activeColumns = new GameObjectNode(row);
                ((GameObjectNode)activeColumns).setObj(gameObject);
            }
            else
            {
                GameObjectTree columnTemp = activeColumns;
                while (columnTemp.nextNode != null && columnTemp.getNum() != row)
                {
                    columnTemp = columnTemp.nextNode;
                }

                columnTemp.nextNode = new GameObjectNode(row);
                columnTemp          = columnTemp.nextNode;


                ((GameObjectNode)columnTemp).setObj(gameObject);
            }
        }
コード例 #3
0
 public virtual void AddToActive(int column, int row, ObjectController gameObject)
 {
     total++;
     if (activeColumns == null)
     {
         activeColumns = new GameObjectColumn(column);
         activeColumns.AddToActive(column, row, gameObject);
     }
     else
     {
         GameObjectTree columnTemp = activeColumns;
         while (columnTemp.nextNode != null && columnTemp.getNum() != column)
         {
             columnTemp = columnTemp.nextNode;
         }
         if (columnTemp.getNum() != column)
         {
             columnTemp.nextNode = new GameObjectColumn(column);
             columnTemp          = columnTemp.nextNode;
         }
         columnTemp.AddToActive(column, row, gameObject);
     }
 }
コード例 #4
0
 public void add(ObjectController controller)
 {
     AddToActive(new ObjectControllerStatusData(controller));
 }
コード例 #5
0
 public ObjectControllerStatusData(ObjectController objectController)
 {
     this.objectController = objectController;
 }
コード例 #6
0
 public void setObj(ObjectController gameObject)
 {
     this.gameObject = gameObject;
 }