game

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlotZonesASCII

func PlotZonesASCII(w world.World)

func Start

func Start() error

Types

type Game

type Game struct {
	World            *world.World
	Corporations     *corporation.CorpGroup
	PlayerState      *PlayerState
	MissionScheduler *mission.MissionScheduler
	// contains filtered or unexported fields
}

TODO: Gracefully shutdown game

func New

func New() *Game

func (*Game) HarvestPlanet

func (g *Game) HarvestPlanet(planetId string, corporationId uint64, squadId int, notificationChan chan string) error

TODO: Need to add inbound base when Base system is implemented

func (*Game) SellResource

func (g *Game) SellResource(planetId string, corporationId uint64, squadId int, amount int, itemName world.Resource, notificationChan chan string) error

TODO: Amounts should be reflected after the time distance is elapsed TODO: Use MissionScheduler func (g *Game) SellResource(amount int, itemName world.Resource, planetId string, corporationId uint64) error {

type PlayerState

type PlayerState struct {
	Corporation      *corporation.Corporation
	Name             string
	NotificationChan chan string
}

Possible State fields:

Achievements
GameProgress
ActiveQuests
Skills
Inventory
Ship and building Blueprints
LastSavedTime
Etc...

Jump to

Keyboard shortcuts

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