gameobject

package
v0.0.0-...-57f8e72 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 1 Imported by: 0

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 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 *Node) Unlink(list *LinkedList) *Node

type ObjectType

type ObjectType int
const (
	PLAYER ObjectType = iota
	ENEMY
	MAP_ELEMENT
	PLAYER_BULLET
	ENEMY_BULLET
	WALL
)

Jump to

Keyboard shortcuts

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