Example #1
0
        private void Register()
        {
            RAPlayer[] _p = new RAPlayer[1];
            RAPlayer p1 = new RAPlayer(PLAYER_STARTING_LOCATION, Color.Azure, 0.0f/*, PLAYER_IMAGE_ORIGIN*/);//****
            _p[0] = p1;

            pmTEST = new RAPlayerManager(_p);
            um = new Zone1UnitManager();
            hud = new HUDManager(_levelData);

            _DM = new DebugManager();

            base.RegisterManager(_DM);
            base.RegisterManager(pmTEST);
            base.RegisterManager(hud);
            base.RegisterManager(um);

            _DM.CoupleUnitManager(um);
        }
Example #2
0
        private void Register()
        {
            RAPlayer[] _p = new RAPlayer[1];
            RAPlayer   p1 = new RAPlayer(PLAYER_STARTING_LOCATION, Color.Azure, 0.0f /*, PLAYER_IMAGE_ORIGIN*/);//****

            _p[0] = p1;

            pmTEST = new RAPlayerManager(_p);
            um     = new Zone1UnitManager();
            hud    = new HUDManager(_levelData);

            _DM = new DebugManager();

            base.RegisterManager(_DM);
            base.RegisterManager(pmTEST);
            base.RegisterManager(hud);
            base.RegisterManager(um);

            _DM.CoupleUnitManager(um);
        }
Example #3
0
        private void Register()
        {
            RAPlayer[] _p = new RAPlayer[1];
            RAPlayer p1 = new RAPlayer(PLAYER_STARTING_LOCATION, Color.Azure, 0.0f/*, PLAYER_IMAGE_ORIGIN*/);//****
            _p[0] = p1;

            pmTEST = new RAPlayerManager(_p);
            um = new Zone1UnitManager();
            hud = new HUDManager(_levelData);

            _DM = new DebugManager();

            base.RegisterManager(_DM);
            base.RegisterManager(pmTEST);
            base.RegisterManager(hud);
            base.RegisterManager(um);

            _DM.CoupleUnitManager(um);

            //base.RegisterPlayerManager(pmTEST);
            //base.Register(um);//register should allow a vector or linked list (or IEnumerable) for all manager types.
        }
Example #4
0
 internal void CoupleUnitManager(Zone1UnitManager um)
 {
     _unitManager = um;
 }
Example #5
0
 internal void CoupleUnitManager(Zone1UnitManager um)
 {
     _unitManager = um;
 }