Inheritance Hierarchy
DeltaEngine.Content ContentData
DeltaEngine.Scenes Scene
Breakout MainMenu
Namespace: Breakout
Assembly: Breakout (in Breakout.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The MainMenu type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | MainMenu | Initializes a new instance of the MainMenu class |
Methods
Name | Description | |
---|---|---|
![]() | Add(Entity2D) | (Inherited from Scene.) |
![]() | Add(IEnumerable Entity2D ) | (Inherited from Scene.) |
![]() | AddControlToScene | (Inherited from Scene.) |
![]() | Clear | (Inherited from Scene.) |
![]() | CreateDefault | (Inherited from ContentData.) |
![]() | Dispose | (Inherited from ContentData.) |
![]() | DisposeData | (Inherited from Scene.) |
![]() | Hide | (Inherited from Scene.) |
![]() | InternalCreateDefault | (Inherited from ContentData.) |
![]() | LoadData | (Inherited from Scene.) |
![]() | LoadFromFile | (Inherited from Scene.) |
![]() | Remove | (Inherited from Scene.) |
![]() | SetQuadraticBackground(String) | (Inherited from Scene.) |
![]() | SetQuadraticBackground(Material) | (Inherited from Scene.) |
![]() | SetViewportBackground(String) | (Inherited from Scene.) |
![]() | SetViewportBackground(Material) | (Inherited from Scene.) |
![]() | Show | (Inherited from Scene.) |
![]() | ToBackground | (Inherited from Scene.) |
![]() | ToForeground | (Inherited from Scene.) |
![]() | ToString | (Inherited from ContentData.) |
Fields
Name | Description | |
---|---|---|
![]() | background | (Inherited from Scene.) |
![]() | ContentChanged | (Inherited from ContentData.) |
Properties
Name | Description | |
---|---|---|
![]() | AllowCreationIfContentNotFound | (Inherited from ContentData.) |
![]() | BackSound | |
![]() | Controls | (Inherited from Scene.) |
![]() | DrawArea | (Inherited from Scene.) |
![]() | EnterSound | |
![]() | IsDisposed | (Inherited from ContentData.) |
![]() | MetaData | (Inherited from ContentData.) |
![]() | Name | (Inherited from ContentData.) |
Events
Name | Description | |
---|---|---|
![]() | InitGame | |
![]() | QuitGame | |
![]() ![]() | SettingsChanged |
Remarks
Examples
[Test] public void StartGame() { if (!IsMockResolver) return; //ncrunch: no coverage bool started = false; menu.InitGame += () => started = true; var mouse = Resolve<MockMouse>(); ClickAtPosition(mouse, new Vector2D(0.31f, 0.31f)); Assert.IsTrue(started); }
[Test] public void QuitGame() { if (!IsMockResolver) return; //ncrunch: no coverage bool quit = false; menu.QuitGame += () => quit = true; var mouse = Resolve<MockMouse>(); ClickAtPosition(mouse, new Vector2D(0.31f, 0.73f)); Assert.IsTrue(quit); }
[Test, Ignore] public void HowToPlay() { if (!IsMockResolver) return; //ncrunch: no coverage var mouse = Resolve<MockMouse>(); ClickAtPosition(mouse, new Vector2D(0.31f, 0.45f)); Assert.IsFalse(menu.Controls[0].IsVisible); ClickAtPosition(mouse, new Vector2D(0.31f, ScreenSpace.Current.Bottom - 0.19f)); Assert.IsTrue(menu.Controls[0].IsVisible); }
See Also