Documentation ¶
Overview ¶
Package traits base.go Defines interfaces that define traits.
Package traits notify.go Defines interfaces that define traits that get notified.
Package traits render.go Defines interfaces that define traits that are used for rendering.
Package traits worldmap.go Defines interfaces that define traits that are used for worldmap interaction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MoveNotifier ¶
MoveNotifier is called when an Actor is moved on the map.
type OccupySpace ¶
type OccupySpace interface { munfall.Trait Intersects(OccupySpace, *munfall.WPos) bool Space() []munfall.Space OutOfBounds(*munfall.WPos) bool }
OccupySpace defines a trait that occupies space and should collide with other actors that have an OccupySpace trait.
type SpaceCell ¶
SpaceCell defines a Space that is a full cell.
func (*SpaceCell) Initialize ¶
Initialize called when this space is created.
func (*SpaceCell) Intersects ¶
Intersects returns if the two spaces intersect.
type TraitAddedToWorldNotifier ¶
TraitAddedToWorldNotifier is a trait that gets notified when it is added to the world.
type TraitOrderResolver ¶
TraitOrderResolver used by traits to resolve orders sent by an order generator.
type TraitRemovedFromWorldNotifier ¶
TraitRemovedFromWorldNotifier is a trait that gets notified when it is removed from the world.
type TraitRender2D ¶
type TraitRender2D interface { munfall.Trait Render2D() []munfall.Renderable }
TraitRender2D called by TraitRenderManager to get renderables for rendering (2D implementation).
type TraitTicker ¶
TraitTicker is a trait that gets called every time the world ticks.