Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BenNicholls/spaceshippers
/ functions
Functions
358 in github.com/BenNicholls/spaceshippers
⨍
Functions
358
◇
Types & classes
87
↓ 2 callers
Function
NewSimpleCommDialog
(message string)
dialogs.go:198
↓ 2 callers
Function
NewSleepJob
()
task.go:81
↓ 2 callers
Function
NewSpaceshipGame
(g *Galaxy, s *Ship)
spaceshipgame.go:68
↓ 2 callers
Function
NewStar
NewStar creates a star. c is the coordinates of the starsystem. Defaults to center of system.
starsystem.go:109
↓ 2 callers
Function
NewStarSystem
(c Coordinates)
starsystem.go:24
↓ 2 callers
Method
OnInterrupt
()
task.go:6
↓ 2 callers
Method
OnTick
()
task.go:5
↓ 2 callers
Method
Remove
Attempts to remove item from stores. Returns the amount of item removed, or returns 0 if no item is found. If less than volume v is present in stores,
storagesystem.go:95
↓ 2 callers
Method
RemoveStatus
(s StatusID)
crew.go:245
↓ 2 callers
Method
Rotate
()
room.go:70
↓ 2 callers
Method
SetCursor
(pos vec.Coord)
galaxymapview.go:252
↓ 2 callers
Method
SetWorker
(w *Crewman)
task.go:10
↓ 2 callers
Method
SetupShip
SetupShip performs post-init calculations. Do after loading.
ship.go:87
↓ 2 callers
Method
SetupUI
()
spaceshipgame.go:129
↓ 2 callers
Method
UpdateCrewDetails
Updates variable data for crew details page. Called whenever a UI_UPDATE event for the crew is received (most frames)
ui_crewmenu.go:138
↓ 2 callers
Method
UpdateEngineStats
()
propulsion.go:32
↓ 2 callers
Method
UpdateExplanation
()
galaxycreatemenu.go:86
↓ 2 callers
Method
UpdateHelpText
(state util.StateID)
shipdesignmenu.go:324
↓ 2 callers
Method
UpdateMissionView
()
ui_gamemenu.go:86
↓ 2 callers
Method
UpdateMissions
()
ui_gamemenu.go:77
↓ 2 callers
Method
UpdateShipDescription
()
shipcreatemenu.go:98
↓ 2 callers
Method
UpdateStorage
()
ui_shipmenu.go:113
↓ 2 callers
Method
UpdateStorageOverview
()
ui_shipmenu.go:118
↓ 2 callers
Method
UpdateTime
()
ui_time.go:37
↓ 2 callers
Method
localZoomFactor
()
galaxymapview.go:161
↓ 2 callers
Method
moveLocal
(dx, dy float64)
location.go:254
↓ 2 callers
Method
moveSector
(dx, dy int)
location.go:291
↓ 2 callers
Method
moveStarSystem
(dx, dy int)
location.go:269
↓ 2 callers
Method
moveSubSector
(dx, dy int)
location.go:280
↓ 1 callers
Method
AddCriteria
(c Acheivable)
mission.go:120
↓ 1 callers
Method
AddEffect
(e EffectID, s StatusID)
crew.go:266
↓ 1 callers
Method
AddGalacticMapObjectMarker
Adds an object to be drawn on the galactic version of the map.
galaxymapview.go:186
↓ 1 callers
Method
AddGasMixture
(gm2 GasMixture)
gas.go:186
↓ 1 callers
Method
AddLocalMapObjectMarker
Adds an object to be drawn on the local version of the map.
galaxymapview.go:193
↓ 1 callers
Method
AddMapObjectMarker
Adds an object to be drawn in both galactic and local modes.
galaxymapview.go:180
↓ 1 callers
Method
AddRoomToShip
()
shipdesignmenu.go:315
↓ 1 callers
Method
AddSource
(s StatusID)
crewstatus.go:65
↓ 1 callers
Method
AddStat
(RoomStat)
shipsystem.go:24
↓ 1 callers
Method
AddStep
(s Acheivable)
mission.go:116
↓ 1 callers
Method
Bounds
()
ship.go:112
↓ 1 callers
Method
Breathe
()
crew.go:140
↓ 1 callers
Method
CompileInventoryList
()
ui_shipmenu.go:126
↓ 1 callers
Method
ComputeCourse
Returns a Course based on the parameters.
navigation.go:147
↓ 1 callers
Method
ComputeStraightCourse
Computes the course parameters subject to a fuel limit These formulae are the product of way too much algebra don't screw with them.
navigation.go:112
↓ 1 callers
Method
CreateShipTemplate
()
shiptemplates.go:78
↓ 1 callers
Method
Generate
(t PlanetType)
starsystem.go:183
↓ 1 callers
Method
GenerateEarth
Generates the Sol System (and with it, the ACTUAL STRAIGHT UP EARTH). Totally amazing.
galaxy.go:70
↓ 1 callers
Method
GeneratePalette
()
ui_viewmenu.go:35
↓ 1 callers
Method
GenerateRandom
()
starsystem.go:35
↓ 1 callers
Method
GenerateSolSystem
()
starsystem.go:69
↓ 1 callers
Method
GenerateSubSector
generates a subsector and adds it to the subsector map. if (x, y) already exists, just returns the old one
galaxy.go:188
↓ 1 callers
Method
GetAllStats
()
shipsystem.go:23
↓ 1 callers
Method
GetCoordStrings
Returns a string for each coordinate in the form SECTOR:SUBSECTOR:STARCOORD:LOCAL, subject to resolution limits.
location.go:173
↓ 1 callers
Method
GetCurrentProgress
returns the pct of our current course that has been completed.
navigation.go:76
↓ 1 callers
Function
GetDurationString
(t int)
spacetime.go:19
↓ 1 callers
Method
GetFillPct
(st StorageType)
storagesystem.go:130
↓ 1 callers
Method
GetLocationType
()
location.go:20
↓ 1 callers
Method
GetName
()
gas.go:44
↓ 1 callers
Method
GetRoom
Returns the room for a given coord on the shipmap. Returns nil if no room found. If multiple rooms occupy a space (ex. shared wall), returns the first
ship.go:280
↓ 1 callers
Method
GetStarSystem
Retreives a reference to the starsystem, given a local coord. Returns nil if coord is not local, or if coord is not within a starsystem
galaxy.go:130
↓ 1 callers
Method
GetTick
returns the number of simulated seconds since launch
spaceshipgame.go:256
↓ 1 callers
Method
GetTime
gets the time from the Galaxy
spaceshipgame.go:261
↓ 1 callers
Method
GetViewMode
()
ui_viewmenu.go:191
↓ 1 callers
Method
HandleEffects
Per-turn things for effects
crew.go:282
↓ 1 callers
Method
HasStar
()
galaxy.go:209
↓ 1 callers
Method
InitAtmosphere
Inits atmosphere to the target parameters. v is volume in L. o2 and p are pressures in kPa
gas.go:90
↓ 1 callers
Method
InitCrewDetails
Updates the static data for the crew details page. This is only called when the selected crew member is changed.
ui_crewmenu.go:123
↓ 1 callers
Method
InitStandardAtmosphere
Initializes atmosphere to standard Earth sea-level values.
gas.go:98
↓ 1 callers
Method
IsComplete
()
mission.go:21
↓ 1 callers
Method
IsExplored
()
location.go:21
↓ 1 callers
Method
IsFailed
()
mission.go:22
↓ 1 callers
Method
IsKnown
()
location.go:22
↓ 1 callers
Method
LoadSpaceEvents
()
spaceevent.go:95
↓ 1 callers
Method
Move
(dx, dy int, res CoordResolution)
location.go:236
↓ 1 callers
Method
MoveCursor
(dir vec.Direction)
galaxymapview.go:264
↓ 1 callers
Function
NewChooseFileDialog
(dirPath, ext string, onLoad func(filename string))
dialogs.go:28
↓ 1 callers
Function
NewCommSystem
()
comms.go:23
↓ 1 callers
Function
NewCrewEffect
(e EffectID)
crewstatus.go:26
↓ 1 callers
Function
NewCrewStatus
(s StatusID)
crewstatus.go:107
↓ 1 callers
Function
NewGoToStep
(s *Ship, d Locatable)
mission.go:149
↓ 1 callers
Function
NewLifeSupportSystem
(s *Ship)
lifesupport.go:14
↓ 1 callers
Function
NewMission
(name, desc string)
mission.go:83
↓ 1 callers
Function
NewNavigationSystem
(s *Ship, g *Galaxy)
navigation.go:18
↓ 1 callers
Function
NewPlayer
(n string)
player.go:24
↓ 1 callers
Function
NewPropulsionSystem
(s *Ship)
propulsion.go:20
↓ 1 callers
Function
NewRoom
(name string, t RoomType, w, h int)
room.go:27
↓ 1 callers
Function
NewRoomFromTemplate
(temp RoomTemplate)
room.go:42
↓ 1 callers
Function
NewSector
(pos vec.Coord, density int)
galaxy.go:150
↓ 1 callers
Function
NewSectorCoordinate
NewCoordinate makes a new Coordinate object, defaulted to the center of a sector.
location.go:164
↓ 1 callers
Function
NewSetCourseDialog
(s *Ship, d Locatable, time int)
ui_setcourse.go:33
↓ 1 callers
Function
NewShipCreateMenu
(galaxy *Galaxy)
shipcreatemenu.go:30
↓ 1 callers
Function
NewShipDesignMenu
()
shipdesignmenu.go:52
↓ 1 callers
Function
NewSpaceEventDialog
(e SpaceEvent)
spaceevent.go:47
↓ 1 callers
Function
NewStayAwayCriteria
(s *Ship, d Locatable, dist float64)
mission.go:186
↓ 1 callers
Function
NewStorageSystem
(s *Ship)
storagesystem.go:42
↓ 1 callers
Method
OnEnd
()
task.go:4
↓ 1 callers
Method
OnEnd
when job is finished, release the lowly slave who completed it.
task.go:34
↓ 1 callers
Method
OnStatUpdate
()
shipsystem.go:28
↓ 1 callers
Method
ProperName
generates the name of the sector based on its (x, y).
galaxy.go:173
↓ 1 callers
Method
RemoveConnection
(c *Room)
room.go:111
← previous
next →
101–200 of 358, ranked by callers