bonus

package
v0.0.0-...-2d96230 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 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 Bonus

type Bonus byte
const (
	BonusNone Bonus = iota
	BonusWaveHeal
	BonusWaveHeal2
	BonusWaveHeal3
	BonusWaveHeal4
	BonusWaveHeal5
	BonusAirControl

	BonusStrongerJump
	BonusWeakerJump
	/*BonusShield // TODO: shield with cd to cancel a collision
	BonusShield2
	BonusShield3
	BonusShield4
	BonusShield5*/
	BonusAutoCheckpoint // TODO: auto creating checkpoints every X ticks on current platform
	BonusAutoCheckpoint2
	BonusAutoCheckpoint3
)

func (Bonus) Description

func (b Bonus) Description() string

func (Bonus) String

func (b Bonus) String() string

type List

type List struct {
	// contains filtered or unexported fields
}

func NewList

func NewList(rng *rand.Rand) *List

func (*List) Consume

func (bl *List) Consume(b Bonus)

func (*List) Roll

func (bl *List) Roll() (Bonus, Bonus)

Jump to

Keyboard shortcuts

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