Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollisionHandlerFunction ¶
type CollisionHandlerFunction func()
type GameObject ¶
type GameObject interface {
GetPosition() rl.Rectangle
GetObjectType() ObjectType
DrawObject()
GetHandlerByType(obType ObjectType) CollisionHandlerFunction
GetObjectTypeString() string
GetUuid() string
GetMarkedForDestroy() bool
SetMarkedForDestroy()
}
type HandlerMap ¶
type HandlerMap map[ObjectType]CollisionHandlerFunction
type LinkedList ¶
type LinkedList struct {
Head *Node
ObjectMap map[string]GameObject
}
func InitLinkedList ¶
func InitLinkedList() *LinkedList
func (*LinkedList) Append ¶
func (list *LinkedList) Append(value GameObject)
type Node ¶
type Node struct {
Value GameObject
Next *Node
Prev *Node
}
func (*Node) Unlink ¶
func (node *Node) Unlink(list *LinkedList) *Node
type ObjectType ¶
type ObjectType int
const ( PLAYER ObjectType = iota ENEMY MAP_ELEMENT PLAYER_BULLET ENEMY_BULLET WALL )
Click to show internal directories.
Click to hide internal directories.