moon

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name ...
	Name = "moon"
	// EntityMoon ...
	EntityMoon = string("moon")
)
View Source
const (
	// StateAboveHorizon ...
	StateAboveHorizon = "aboveHorizon"
	// StateBelowHorizon ...
	StateBelowHorizon = "belowHorizon"
)
View Source
const (
	// StateNewMoon ...
	StateNewMoon = "new_moon"
	// StateWaxingCrescent ...
	StateWaxingCrescent = "waxing_crescent"
	// StateFirstQuarter ...
	StateFirstQuarter = "first_quarter"
	// StateWaxingGibbous ...
	StateWaxingGibbous = "waxing_gibbous"
	// StateFullMoon ...
	StateFullMoon = "full_moon"
	// StateWaningGibbous ...
	StateWaningGibbous = "waning_gibbous"
	// StateThirdQuarter ...
	StateThirdQuarter = "third_quarter"
	// StateWaningCrescent ...
	StateWaningCrescent = "waning_crescent"
)
View Source
const (
	// AttrHorizonState ...
	AttrHorizonState = "horizonState"
	// AttrPhase ...
	AttrPhase = "phase"
	// AttrAzimuth ...
	AttrAzimuth = "azimuth"
	// AttrElevation ...
	AttrElevation = "elevation"
	// AttrLat ...
	AttrLat = "lat"
	// AttrLon ...
	AttrLon = "lon"
)

Variables

This section is empty.

Functions

func New

func New() plugins.Plugable

New ...

func NewAttr

func NewAttr() m.Attributes

NewAttr ...

func NewSettings

func NewSettings() m.Attributes

NewSettings ...

func NewStates

func NewStates() (states map[string]entity_manager.ActorState)

NewStates ...

Types

type Actor

type Actor struct {
	entity_manager.BaseActor
	// contains filtered or unexported fields
}

Actor ...

func NewActor

func NewActor(entity *m.Entity,
	entityManager entity_manager.EntityManager,
	eventBus bus.Bus) *Actor

NewActor ...

func (*Actor) Spawn

func (e *Actor) Spawn() entity_manager.PluginActor

Spawn ...

func (*Actor) UpdateMoonPosition

func (e *Actor) UpdateMoonPosition(now time.Time)

UpdateMoonPosition ...

Jump to

Keyboard shortcuts

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