messages

package
v0.0.0-...-23cb9d2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 1 Imported by: 23

Documentation

Index

Constants

View Source
const ControlLabelType string = "ControlLabelMessage"

ControlLabelType is the type of a GameoverMessage

View Source
const CreateBulletType string = "CreateBulletMessage"

CreateBulletType is the type for the bullet message

View Source
const DamageType string = "DamageMessage"

DamageType is the type for the damage message

View Source
const FlashType string = "FlashMessage"

FlashType is the type of a GameoverMessage

View Source
const GameOverType string = "GameoverMessage"

GameOverType is the type of a GameoverMessage

View Source
const GetPlayerPositionType string = "GetPlayerPositionMessage"
View Source
const MusicLabelType string = "MusicLabelMessage"

MusicLabelType is the type of a GameoverMessage

View Source
const MusicType string = "MusicMessage"

MusicType is the type of a GameoverMessage

View Source
const SFXLabelType string = "SFXLabelMessage"

SFXLabelType is the type of a GameoverMessage

View Source
const SFXType string = "SFXMessage"

SFXType is the type of a GameoverMessage

View Source
const ScoreType string = "ScoreMessage"

ScoreType is the type of a GameoverMessage

View Source
const SendPlayerPositionType string = "SendPlayerPositionMessage"
View Source
const SpeedType string = "SpeedMessage"

SpeedType is the type of a GameoverMessage

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlLabel

type ControlLabel struct {
	Up bool
}

ControlLabel is sent when a lose condition is met

func (ControlLabel) Type

func (ControlLabel) Type() string

Type implements the engo.Message interface

type CreateBullet

type CreateBullet struct {
	Position engo.Point
	Angle    float32
}

CreateBullet is a message that creates a bullet from the given location and fires it at the given angle in degrees (theta = 0 is vertical and increases counter-clockwise.)

func (CreateBullet) Type

func (CreateBullet) Type() string

Type implements the engo.Message interface

type Damage

type Damage struct {
	Amount float32
}

Damage is a message that records damage taken

func (Damage) Type

func (Damage) Type() string

Type implements the engo.Message interface

type Flash

type Flash struct{}

Flash is sent when a lose condition is met

func (Flash) Type

func (Flash) Type() string

Type implements the engo.Message interface

type GameOver

type GameOver struct{}

GameOver is sent when a lose condition is met

func (GameOver) Type

func (GameOver) Type() string

Type implements the engo.Message interface

type GetPlayerPosition

type GetPlayerPosition struct {
	Position engo.Point
}

func (GetPlayerPosition) Type

func (GetPlayerPosition) Type() string

type Music

type Music struct {
	Amount float64
	Cb     bool
}

Music is sent when a lose condition is met

func (Music) Type

func (Music) Type() string

Type implements the engo.Message interface

type MusicLabel

type MusicLabel struct {
	Up bool
}

MusicLabel is sent when a lose condition is met

func (MusicLabel) Type

func (MusicLabel) Type() string

Type implements the engo.Message interface

type SFX

type SFX struct {
	Amount float64
	Cb     bool
}

SFX is sent when a lose condition is met

func (SFX) Type

func (SFX) Type() string

Type implements the engo.Message interface

type SFXLabel

type SFXLabel struct {
	Up bool
}

SFXLabel is sent when a lose condition is met

func (SFXLabel) Type

func (SFXLabel) Type() string

Type implements the engo.Message interface

type Score

type Score struct {
	Amount int
}

Score is sent when pointes are scored

func (Score) Type

func (Score) Type() string

Type implements the engo.Message interface

type SendPlayerPosition

type SendPlayerPosition struct{}

func (SendPlayerPosition) Type

func (SendPlayerPosition) Type() string

type Speed

type Speed struct{}

Speed is sent when a lose condition is met

func (Speed) Type

func (Speed) Type() string

Type implements the engo.Message interface

Jump to

Keyboard shortcuts

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