Documentation ¶
Index ¶
- func LinkHashToRoom(hash, roomName string)
- type GameStatus
- type Instance
- func (i *Instance) AddPlayer() int8
- func (i *Instance) GetGame() *pong.Game
- func (i *Instance) GetNumberOfPlayersConnected() int8
- func (i *Instance) GetRoomName() string
- func (i *Instance) GetStatus() GameStatus
- func (i *Instance) GetTicks() int8
- func (i *Instance) KeepAlive()
- func (i *Instance) Run()
- type InstancesManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LinkHashToRoom ¶
func LinkHashToRoom(hash, roomName string)
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func CreateInstance ¶
func CreateInstance() *Instance
CreateInstance : Creates & Initialize a new game instance
func GetInstance ¶
func GetInstanceWithHash ¶
func (*Instance) GetNumberOfPlayersConnected ¶
func (*Instance) GetRoomName ¶
func (*Instance) GetStatus ¶
func (i *Instance) GetStatus() GameStatus
type InstancesManager ¶
type InstancesManager struct {
// contains filtered or unexported fields
}
func Get ¶
func Get() *InstancesManager
func (*InstancesManager) GetInstances ¶
func (im *InstancesManager) GetInstances() map[string]*Instance
func (*InstancesManager) NumberOfInstances ¶
func (im *InstancesManager) NumberOfInstances() int
func (*InstancesManager) NumberOfPlayers ¶
func (im *InstancesManager) NumberOfPlayers() int
func (*InstancesManager) RemoveStoppedInstance ¶
func (im *InstancesManager) RemoveStoppedInstance()
Click to show internal directories.
Click to hide internal directories.