Example #1
0
        private void InitialAI( IAI tankAI )
        {
            commonServer = new AICommonServer( mapSize );
            tank.SetTankAI( tankAI );
            tankAI.OrderServer = tank;
            tankAI.CommonServer = commonServer;

            GameManager.ObjMemoryMgr.AddSingle( tank );
        }
Example #2
0
        private void AIInitial( IAI tankAI1, IAI tankAI2 )
        {
            commonServer = new AICommonServer( mapRect );

            tankAI1.CommonServer = commonServer;
            tankAI1.OrderServer = tank1;
            tank1.SetTankAI( tankAI1 );

            tankAI2.CommonServer = commonServer;
            tankAI2.OrderServer = tank2;
            tank2.SetTankAI( tankAI2 );

            //GameManager.ObjMemoryMgr.AddSingle( tank1 );
            //GameManager.ObjMemoryMgr.AddSingle( tank2 );
        }