common

package
v0.0.0-...-76eb773 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CruiserShipType = "cruiser/carrier"
)

Variables

View Source
var VerboseLogging = false

Functions

func Debugln

func Debugln(v ...interface{})

Types

type Player

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

func NewPlayer

func NewPlayer(pilotName string) *Player

func (*Player) GetName

func (p *Player) GetName() string

func (*Player) GetShip

func (p *Player) GetShip() *ShipStats

func (*Player) SelectShip

func (p *Player) SelectShip(shipType string)

func (*Player) SetShip

func (p *Player) SetShip(shipType string)

type ShipLevel

type ShipLevel struct {
	Level             int
	HasCombatPiloting bool
	CombatDelta       int
	PilotingDelta     int
}

func (*ShipLevel) IsCruiser

func (s *ShipLevel) IsCruiser() bool

func (*ShipLevel) String

func (s *ShipLevel) String() string

type ShipStats

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

func (*ShipStats) LevelUp

func (s *ShipStats) LevelUp(l ShipLevel)

Jump to

Keyboard shortcuts

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