game

package
v0.0.0-...-7483609 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package game game.go Defines the struct used to connect all the engine components together.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	Camera *render.Camera
	// contains filtered or unexported fields
}

Game type used to gold all the components needed to run a game.

func (*Game) ActorRegistry

func (g *Game) ActorRegistry() *logic.ActorRegistry

ActorRegistry returns the inner actor registry for the game..

func (*Game) Initialize

func (g *Game) Initialize(wm munfall.WorldMap)

Initialize initializes the game.

func (*Game) SetOrderGenerator

func (g *Game) SetOrderGenerator(og input.OrderGenerator)

SetOrderGenerator sets the current active order generator for the game.

func (*Game) Start

func (g *Game) Start(framerate int64)

Start starts the game loop.

func (*Game) World

func (g *Game) World() munfall.World

World returns the underlying world.

func (*Game) WorldMap

func (g *Game) WorldMap() munfall.WorldMap

WorldMap returns the underlying worldmap.

Jump to

Keyboard shortcuts

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