Inheritance Hierarchy
DeltaEngine.Entities Entity
Drench.Games Game
Drench.Games TwoPlayerGame
Drench.Games TwoHumanNetworkGame
Namespace: Drench.Games
Assembly: Drench (in Drench.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The TwoHumanNetworkGame type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TwoHumanNetworkGame | Initializes a new instance of the TwoHumanNetworkGame class |
Methods
Name | Description | |
---|---|---|
Add T | (Inherited from Entity.) | |
AddTag | (Inherited from Entity.) | |
ArrangeScene | (Inherited from Game.) | |
ButtonClicked | (Overrides Game ButtonClicked(Int32, Int32).) | |
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 | (Inherited from TwoPlayerGame.) | |
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.) | |
Update | ||
UpdateText | (Inherited from TwoPlayerGame.) |
Fields
Name | Description | |
---|---|---|
components | (Inherited from Entity.) | |
logic | (Inherited from Game.) |
Properties
Name | Description | |
---|---|---|
IsActive | (Inherited from Entity.) | |
IsPauseable | (Overrides Entity IsPauseable.) | |
NumberOfComponents | (Inherited from Entity.) | |
UpdatePriority | (Inherited from Entity.) |
Events
Name | Description | |
---|---|---|
Exited | (Inherited from Game.) |
Remarks
Examples
[Test] public void NewGameInstructions() { Assert.AreEqual("*** Player 1: 1 (Your turn) ***", game1.upperText.Text); Assert.AreEqual("Player 2: 1 ", game1.lowerText.Text); Assert.AreEqual("*** Player 1: 1 (Waiting for other player's turn) ***", game2.upperText.Text); Assert.AreEqual("Player 2: 1 ", game2.lowerText.Text); }
[Test] 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("*** Player 1: 1 - Invalid Move! ***", game1.upperText.Text); Assert.AreEqual("*** Player 1: 1 (Waiting for other player's turn) ***", game2.upperText.Text); }
[Test] public void ClickValidSquare() { ClickMouse(Vector2D.Half); Assert.AreEqual(" Player 1: 3 Game Over! Player 1 wins! ", game1.upperText.Text); }
See Also