messagehandle

package
v0.0.0-...-b0d4320 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2016 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGame

func CreateGame(conn *connection.Conn, allGames map[string]*games.Game, message messages.CreateGameMessage)

CreateGame handles the case where a player sends a CreateGame message

func JoinGame

func JoinGame(conn *connection.Conn, allGames map[string]*games.Game, message messages.JoinGameMessage)

JoinGame handles the case where a player sends a JoinGame message

func LeaveGame

func LeaveGame(conn *connection.Conn, allGames map[string]*games.Game, message messages.LeaveGameMessage)

LeaveGame handles the case where a player sends a LeaveGame message

func RequestAlias

func RequestAlias(message messages.RequestAliasMessage, conn *connection.Conn, al map[string]bool)

RequestAlias handles the situation when a client sends a RequestAlias message

func RequestGameList

func RequestGameList(conn *connection.Conn, allGames map[string]*games.Game, message messages.RequestGameListMessage)

RequestGameList handles the case where a player sends a RequestGameList message

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL