//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); }
public XWingDisplayer(DomainFacade displayer, XWing xWing) : base(displayer, xWing, "xwing") { _value = xWing.Value; _positions = xWing.Positions; _positionsToRemove = xWing.PositionsToRemove; _house = xWing.House; }
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; }
/// <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(); }
internal void SetTarget(XWing newTarget) => target = newTarget;