game

package
v0.0.0-...-af59c4b Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	// contains filtered or unexported fields
}

func NewGame

func NewGame(directory string) *Game

func (*Game) DropPlayerSession

func (game *Game) DropPlayerSession(id string)

DropPlayerSession for given id from Game

func (*Game) GetPlayerSession

func (game *Game) GetPlayerSession(id string) *player.Player

GetPlayerSession returns the session for the player

func (*Game) GetStarSystem

func (game *Game) GetStarSystem(name string) *starsystem.StarSystem

func (*Game) GetStarSystems

func (game *Game) GetStarSystems() []string

func (*Game) Init

func (game *Game) Init() error

func (*Game) Movement

func (game *Game) Movement(player *player.Player, move *mathf.Vec3, rotation *mathf.Vec3)

func (*Game) Ready

func (game *Game) Ready(player *player.Player) error

func (*Game) SessionByName

func (game *Game) SessionByName(id string, name string) (*player.Player, error)

func (*Game) Shutdown

func (game *Game) Shutdown(directory string) error

Jump to

Keyboard shortcuts

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