entitytest

package
v0.0.0-...-73b4bbd Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEntity

type MockEntity struct {
	EntityId   entity.Id
	EntityCell coord.Cell
	Flagset    entity.Flag
}

func (MockEntity) Bounds

func (e MockEntity) Bounds() coord.Bounds

func (MockEntity) Cell

func (e MockEntity) Cell() coord.Cell

func (MockEntity) Flags

func (e MockEntity) Flags() entity.Flag

func (MockEntity) Id

func (e MockEntity) Id() entity.Id

func (MockEntity) String

func (e MockEntity) String() string

func (MockEntity) ToState

func (e MockEntity) ToState() entity.State

type MockEntityState

type MockEntityState struct {
	Id   entity.Id `json:"id"`
	Name string    `json:"name"`

	Cell coord.Cell `json:"cell"`
	// contains filtered or unexported fields
}

func (MockEntityState) Bounds

func (e MockEntityState) Bounds() coord.Bounds

func (MockEntityState) EntityId

func (e MockEntityState) EntityId() entity.Id

func (MockEntityState) IsDifferentFrom

func (e MockEntityState) IsDifferentFrom(other entity.State) bool

type MockEntityWithBounds

type MockEntityWithBounds struct {
	EntityId     entity.Id
	EntityCell   coord.Cell
	EntityBounds coord.Bounds
	Flagset      entity.Flag
}

func (MockEntityWithBounds) Bounds

func (e MockEntityWithBounds) Bounds() coord.Bounds

func (MockEntityWithBounds) Cell

func (e MockEntityWithBounds) Cell() coord.Cell

func (MockEntityWithBounds) Flags

func (e MockEntityWithBounds) Flags() entity.Flag

func (MockEntityWithBounds) Id

func (MockEntityWithBounds) String

func (e MockEntityWithBounds) String() string

func (MockEntityWithBounds) ToState

func (e MockEntityWithBounds) ToState() entity.State

Jump to

Keyboard shortcuts

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