types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// Positive ones
	StatusHaste Type = iota + 4096
	StatusBloodlust

	// Negative ones
	StatusPoisoned = iota + 5120
	StatusSleeping
	StatusTired
	StatusConfused
)

Status Effects

View Source
const BarXP = BarEXP
View Source
const MaxType uint16 = 64000 // for now!

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type uint16 // two byte, 16 bits, 65k types

Type

const (

	// Game things (nine reserved)
	Error Type
	Warn
	Info
	Update
	File
	Asset
	Menu // options
	Player
)
const (
	Login Type = iota + 20
	DPad
	Repeat
	UpdateGps
	UpdatePlayers
	PlayerAction
	PlayerMessage
	ErrorMessage
	BufferSize
	PlayerLogoff
	Ping
	Pong
	World
	RemoveEntity
	PlayerDeath
)

networking stuff

const (
	NoTile Type = iota + 256
	TileGrass
	TileWater
	TileRock
)

Tiles

const (
	Villager Type = iota + 1024
	Robot
	Alien
	Zombie
	GhostBomb
	Skeleton
	NPC1
	NPC2
)
const (
	ActionSlash Type = iota + 2048
	ActionThrow
	ActionUse
	ActionSpell
	ActionManastorm
	ActionMagicbullet
)

Actions

const (
	BarHealth Type = iota + 8192
	BarMana
	BarEXP
)
const (
	SomethingElse Type = iota + 16384
)
const (
	SomethingUndefined Type = iota + 32768
)

func (Type) Byte

func (t Type) Byte() byte

func (Type) String

func (i Type) String() string

func (Type) Uint16

func (t Type) Uint16() uint16

type Typer

type Typer interface {
	Type() Type
}

Jump to

Keyboard shortcuts

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