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
↓ 1 callers
Method
RemoveRoom
(r *Room)
ship.go:163
↓ 1 callers
Method
RemoveSource
(s StatusID)
crewstatus.go:73
↓ 1 callers
Method
RemoveVolume
Removes a volume of gas v (L) from the atmosphere. Returns the volume of gas removed.
gas.go:141
↓ 1 callers
Method
Save
()
shiptemplates.go:26
↓ 1 callers
Method
SaveShip
()
spaceshipgame.go:269
↓ 1 callers
Method
SetCourse
(l Locatable, c Course)
ship.go:251
↓ 1 callers
Method
SetKnown
()
location.go:97
↓ 1 callers
Method
SetLocation
(l Locatable)
ship.go:135
↓ 1 callers
Method
SetRoom
(room *Room)
shipdesignmenu.go:438
↓ 1 callers
Method
SetValid
(valid bool)
shipdesignmenu.go:449
↓ 1 callers
Method
Setup
(s *Ship)
ui_shipmenu.go:61
↓ 1 callers
Method
String
()
location.go:43
↓ 1 callers
Method
Update
Called once per tick to update durations and such.
crewstatus.go:78
↓ 1 callers
Method
UpdateAllRoomList
()
shipdesignmenu.go:370
↓ 1 callers
Method
UpdateContacts
()
ui_commmenu.go:140
↓ 1 callers
Method
UpdateCrewList
()
ui_crewmenu.go:107
↓ 1 callers
Method
UpdateFileText
()
dialogs.go:156
↓ 1 callers
Method
UpdateInventoryList
()
ui_shipmenu.go:136
↓ 1 callers
Method
UpdateItemDescription
()
ui_shipmenu.go:152
↓ 1 callers
Method
UpdateLocalInfo
()
ui_galaxymenu.go:153
↓ 1 callers
Method
UpdateLogs
()
ui_commmenu.go:165
↓ 1 callers
Method
UpdateViewModeData
()
ui_viewmenu.go:166
↓ 1 callers
Method
Volume
Volume returns the interior volume of the room in m^3
room.go:154
↓ 1 callers
Method
ZoomIn
()
galaxymapview.go:68
↓ 1 callers
Method
ZoomOut
()
galaxymapview.go:88
↓ 1 callers
Method
randomizeName
()
crew.go:67
Method
AddStat
(s RoomStat)
shipsystem.go:47
Method
ApplyUpkeep
(spaceTime int)
room.go:141
Method
Bounds
()
galaxy.go:57
Method
CalcMinBurnTime
Calculates the required burntime required to brake the ship down to V_f. If V_f > ship speed, returns 0.
navigation.go:138
Method
ChangeAmount
(d float64)
item.go:23
Method
ChangeAmount
(d float64)
gas.go:62
Method
Done
()
dialogs.go:77
Method
Done
()
dialogs.go:174
Method
Done
()
dialogs.go:221
Method
Done
()
spaceevent.go:91
Method
Done
()
ui_setcourse.go:128
Method
Draw
(dst_canvas *gfx.Canvas, offset vec.Coord, depth int)
room.go:158
Method
DrawObjectMarkers
()
galaxymapview.go:199
Method
Generate
()
galaxycreatemenu.go:143
Method
GetAllStats
()
shipsystem.go:43
Method
GetAmount
()
item.go:15
Method
GetAmount
returns the molar value of the gas (L * kPa)
gas.go:53
Method
GetColour
(val float64)
ui_viewmenu.go:45
Method
GetCoords
()
location.go:105
Method
GetDesc
()
shipsystem.go:120
Method
GetDescription
()
location.go:19
Method
GetDescription
()
location.go:81
Method
GetDescription
()
mission.go:24
Method
GetDescription
()
mission.go:40
Method
GetDescription
()
storagesystem.go:14
Method
GetDescription
()
item.go:34
Method
GetDescription
()
task.go:29
Method
GetDescription
()
gas.go:48
Method
GetDuration
()
task.go:7
Method
GetDuration
()
task.go:21
Method
GetLocationType
()
location.go:85
Method
GetLocations
This default method actually doesn't work, we don't want the Location object. Hmm.
location.go:120
Method
GetLocations
Returns a list of all locations in the system. Right now that means the star and planets, but it's set up to automatically grab locations in a hierarc
starsystem.go:91
Method
GetLocations
NOTE: When moons and orbitting stuff gets implemented, be sure to add those here.
starsystem.go:208
Method
GetName
()
shipsystem.go:116
Method
GetName
()
location.go:18
Method
GetName
()
location.go:77
Method
GetName
()
mission.go:36
Method
GetName
()
item.go:11
Method
GetName
()
task.go:25
Method
GetStat
(s StatType)
shipsystem.go:35
Method
GetStatus
()
room.go:122
Method
GetStorageType
()
item.go:19
Method
GetStorageType
()
gas.go:70
Method
GetVisitDistance
Returns orbital distance or docking distance. Only works for local locations, returns 0 otherwise.
location.go:110
Method
GetVisitSpeed
Returns orbital speed or docking speed. Only works for local locations, returns 0 otherwise.
location.go:115
Method
GetVisuals
()
crew.go:71
Method
GetVisuals
()
starsystem.go:126
Method
GetVisuals
()
starsystem.go:168
Method
HandleEvent
(game_event event.Event)
galaxycreatemenu.go:151
Method
HandleEvent
(event event.Event)
spaceshipgame.go:207
Method
HandleKeypress
(key_event *input.KeyboardEvent)
ui_galaxymenu.go:90
Method
HandleKeypress
(key_event *input.KeyboardEvent)
shipdesignmenu.go:247
Method
HandleKeypress
(key_event *input.KeyboardEvent)
input.go:5
Method
HandleKeypress
(key_event *input.KeyboardEvent)
dialogs.go:67
Method
HandleKeypress
(key_event *input.KeyboardEvent)
dialogs.go:141
Method
HandleKeypress
(key_event *input.KeyboardEvent)
galaxymapview.go:225
Method
HandleKeypress
(key_event *input.KeyboardEvent)
startmenu.go:39
Method
HandleKeypress
(key_event *input.KeyboardEvent)
ui_commmenu.go:65
Method
HandleKeypress
(key_event *input.KeyboardEvent)
spaceevent.go:78
Method
HandleKeypress
(key_event *input.KeyboardEvent)
ui_setcourse.go:95
Method
Init
(g *Galaxy, s *Ship)
ui_galaxymenu.go:34
Method
Init
()
ui_viewmenu.go:136
Method
Init
(pos vec.Coord, g *Galaxy)
ui_time.go:19
Method
Init
(s *Ship)
ui_shipstats.go:23
Method
Init
(size vec.Dims, pos vec.Coord, depth int, galaxy *Galaxy)
galaxymapview.go:48
Method
Init
(size vec.Dims, pos vec.Coord, depth, starFrequency, shiftFrequency int)
starfield.go:22
Method
Init
()
ui_mainmenu.go:11
Method
Init
(s *Ship)
ui_crewmenu.go:37
Method
InitStats
()
shipsystem.go:64
Method
IsComplete
()
mission.go:44
Method
IsExplored
()
location.go:89
Method
IsFailed
()
mission.go:52
Method
IsKnown
()
location.go:101
← previous
next →
201–300 of 358, ranked by callers