コード例 #1
0
        //Delegate (Homework5)
        private static void DelegateHW5()
        {
            XWing myXWing  = new XWing("Rogue Leader", 7);
            Fly   theXWing = myXWing.FlyXWing;

            theXWing("I flew with " + myXWing.XWingType + " who was a rank of " + myXWing.XWingRank);
        }
コード例 #2
0
ファイル: XWingDisplayer.cs プロジェクト: celejewski/Weboku
 public XWingDisplayer(DomainFacade displayer, XWing xWing)
     : base(displayer, xWing, "xwing")
 {
     _value             = xWing.Value;
     _positions         = xWing.Positions;
     _positionsToRemove = xWing.PositionsToRemove;
     _house             = xWing.House;
 }
コード例 #3
0
        internal override void Initialize()
        {
            player = new Player();
            new DeathStar().Create(true);
            xwing = new XWing();
            xwing.Instantiate(new Vector3(50f, 0f, 0f));
            TGCGame.camera.SetLocation(new Vector3(80f, 0f, 0f), Vector3.Forward, Vector3.Up);
            TGCGame.camera.SetTarget(xwing);

            PlayMusic();
            TGCGame.game.IsMouseVisible = false;
        }
コード例 #4
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            camera = new Camera(this);

            stateManager = new GameStateManager(this);
            io           = new IOManager(this);

            titleScreen = new TitleScreen(this);
            titleScreen.Initialize();

            millenniumFalcon = new MillenniumFalcon(this);
            xwing            = new XWing(this);

            player1 = new Player(this, millenniumFalcon, PlayerIndex.One);
            player1.Initialize();

            player2 = new Player(this, xwing, PlayerIndex.Two);
            player2.Initialize();

            base.Initialize();
        }
コード例 #5
0
 internal void SetTarget(XWing newTarget) => target = newTarget;