package
0.0.0-20200517153222-a7e05d3f6d56
Repository: https://github.com/mortenson/grpc-game-example.git
Documentation: pkg.go.dev

# Functions

NewGame constructs a new Game struct.

# Constants

Contains direction constants - DirectionStop will take no effect.
Contains direction constants - DirectionStop will take no effect.
Contains direction constants - DirectionStop will take no effect.
Contains direction constants - DirectionStop will take no effect.
Contains direction constants - DirectionStop will take no effect.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

MapDefault is the default map used by the game.

# Structs

AddEntityChange occurs when an entity is added in response to an action.
Coordinate is used for all position-related variables.
Game is the backend engine for the game.
IdentifierBase is embedded to satisfy the Identifier interface.
Laser is an entity that is fired by players.
LaserAction is sent when a laser is fired.
MoveAction is sent when a user presses an arrow key.
MoveChange is sent when the game engine moves an entity.
Player contains information unique to local and remote players.
PlayerRespawnChange occurs when a player has been killed and is respawning.
RemoveEntityChange occurs when an entity has been removed from the game.
RoundOverChange indicates that a round is over.
RoundStartChange indicates that a round has started.

# Interfaces

Action is sent by the client when attempting to change game state.
Change is sent by the game engine in response to Actions.
Identifier is an entity that provides an ID method.
Mover is an entity that can be moved.
Positioner is an entity that has a position.

# Type aliases

Direction is used to represent Direction constants.
MapType describe the type of a point on the map.