model

package
v0.0.0-...-2753194 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockType

type BlockType byte
const (
	Clear BlockType = iota
	Wall
	RegularPellet
	PowerPellet
	Trail
	HorizontalDoor
	VerticalDoor
)

order here matches the old values

type Board

type Board struct {
	//Maze          [60][40]BlockType
	// odd shaped board
	Maze          [40][60]BlockType
	StartingPoint MazePosition
}

type Direction

type Direction byte
const (
	Up Direction = iota
	Down
	Left
	Right
)

type Enemy

type Enemy struct {
	MazePosition
	Direction
	PrevDir Direction
}

type Level

type Level struct {
	Height, Width    int
	StartingPosition MazePosition
}

type MazePosition

type MazePosition struct {
	X, Y int
}

Jump to

Keyboard shortcuts

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