Inheritance Hierarchy
DeltaEngine.Entities Entity
Drench.Games Game
Drench.Games SingleHumanGame
Namespace: Drench.Games
Assembly: Drench (in Drench.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The SingleHumanGame type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | SingleHumanGame | Initializes a new instance of the SingleHumanGame class |
Methods
Name | Description | |
---|---|---|
![]() | Add T | (Inherited from Entity.) |
![]() | AddTag | (Inherited from Entity.) |
![]() | ArrangeScene | (Inherited from Game.) |
![]() | ButtonClicked | (Inherited from Game.) |
![]() | ClearTags | (Inherited from Entity.) |
![]() | Contains T | (Inherited from Entity.) |
![]() | ContainsBehavior T | (Inherited from Entity.) |
![]() | ContainsTag | (Inherited from Entity.) |
![]() | CreateButtonTheme | (Inherited from Game.) |
![]() | Deactivate | (Inherited from Entity.) |
![]() | Dispose | (Inherited from Entity.) |
![]() | GameOver | (Overrides Game GameOver .) |
![]() | Get T |
Gets a specific component, derived classes can return faster cached values (e.g. Entity2D)
View code on GitHub (Inherited from Entity.) |
![]() | GetActiveBehaviors | (Inherited from Entity.) |
![]() | GetComponentsForSaving | (Inherited from Entity.) |
![]() | GetOrDefault T | (Inherited from Entity.) |
![]() | GetTags | (Inherited from Entity.) |
![]() | ProcessDesiredMove | (Overrides Game ProcessDesiredMove(Int32, Int32).) |
![]() | Remove T | (Inherited from Entity.) |
![]() | RemoveTag | (Inherited from Entity.) |
![]() | Set | (Inherited from Entity.) |
![]() | SetComponents | (Inherited from Entity.) |
![]() | Start T | (Inherited from Entity.) |
![]() | Stop T | (Inherited from Entity.) |
![]() | ToString | (Inherited from Entity.) |
Fields
Name | Description | |
---|---|---|
![]() | components | (Inherited from Entity.) |
![]() | logic | (Inherited from Game.) |
Properties
Name | Description | |
---|---|---|
![]() | IsActive | (Inherited from Entity.) |
![]() | IsPauseable | (Inherited from Entity.) |
![]() | NumberOfComponents | (Inherited from Entity.) |
![]() | UpdatePriority | (Inherited from Entity.) |
Events
Name | Description | |
---|---|---|
![]() | Exited | (Inherited from Game.) |
Remarks
Examples
[Test, CloseAfterFirstFrame] public void NewGameInstructions() { Assert.AreEqual("Try to complete the grid in the lowest number of turns!", game.upperText.Text); }
[Test, CloseAfterFirstFrame] public void ClickInvalidSquare() { var firstSquare = new Vector2D(ScreenSpace.Current.Left + Game.Border + 0.01f, ScreenSpace.Current.Top + Game.Border + 0.01f); ClickMouse(firstSquare); Assert.AreEqual("0 turns taken - Invalid Move!", game.upperText.Text); }
[Test, CloseAfterFirstFrame] public void ClickValidSquare() { ClickMouse(Vector2D.Half); Assert.AreEqual("1 turn taken", game.upperText.Text); }
See Also