コード例 #1
0
ファイル: Zone1.cs プロジェクト: ZFGCCP/gearsvge
        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);
        }
コード例 #2
0
ファイル: Zone1.cs プロジェクト: spectrumbranch/gearsvge
        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);
        }
コード例 #3
0
ファイル: Zone1.cs プロジェクト: shadowkami/gearsvge
        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.
        }
コード例 #4
0
 internal void CoupleUnitManager(Zone1UnitManager um)
 {
     _unitManager = um;
 }
コード例 #5
0
 internal void CoupleUnitManager(Zone1UnitManager um)
 {
     _unitManager = um;
 }