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
↓ 61 callers
Method
Init
()
dialogs.go:208
↓ 32 callers
Method
Size
()
room.go:50
↓ 26 callers
Method
GetCoords
it is known
location.go:23
↓ 19 callers
Method
GetAmount
()
storagesystem.go:15
↓ 17 callers
Method
Init
(pos vec.Coord, depth int, room *Room)
shipdesignmenu.go:428
↓ 15 callers
Method
Hide
()
spaceshipgame.go:19
↓ 14 callers
Method
ToggleHighlight
()
galaxymapview.go:216
↓ 12 callers
Method
GetName
()
task.go:8
↓ 12 callers
Function
fireSpaceLogEvent
(message string)
log.go:16
↓ 10 callers
Method
AddGas
AddGas adds an amount of gas g to the mixture. m is the molar value of the gas (volume * kPa). volume of the mixture remains constant.
gas.go:104
↓ 9 callers
Method
GetMolarValue
(g GasType)
gas.go:178
↓ 8 callers
Method
Init
(s *Ship)
ui_shipmenu.go:26
↓ 8 callers
Function
NewUniquePlanet
(c Coordinates, orbit, radius, mass float64, name string, pType PlanetType)
starsystem.go:172
↓ 8 callers
Method
PartialPressure
(g GasType)
gas.go:166
↓ 7 callers
Method
ActivateMenu
Activates a menu (crew, rooms, systems, etc). Deactivates menu if menu already active.
spaceshipgame.go:218
↓ 7 callers
Method
Bounds
()
room.go:54
↓ 7 callers
Method
CalcVector
(c2 Coordinates)
location.go:302
↓ 7 callers
Method
GetItemVolume
(name string)
storagesystem.go:114
↓ 7 callers
Method
GetStat
(StatType)
shipsystem.go:22
↓ 7 callers
Method
Update
()
mission.go:20
↓ 6 callers
Method
GetDescription
()
task.go:9
↓ 6 callers
Method
GetSector
Retreives sector at (x, y). Returns nil if x,y out of bounds (bad).
galaxy.go:94
↓ 6 callers
Method
GetStorageType
()
storagesystem.go:18
↓ 6 callers
Method
IsIn
Reports whether coordinate c1 is "inside" a location l. NOTES: if c1 and l are the same, this reports true. if c1 and l are both Local objects, it tes
location.go:200
↓ 6 callers
Method
RemoveGas
removes some gas from the mixture. if not enough of the gas is present in the mixture, removes what is there.
gas.go:123
↓ 5 callers
Method
AddStatus
(s StatusID)
crew.go:227
↓ 5 callers
Method
CenterView
()
shipdesignmenu.go:239
↓ 5 callers
Function
GetDateString
(t int)
spacetime.go:23
↓ 5 callers
Method
GetLocations
()
location.go:24
↓ 5 callers
Method
GetName
()
mission.go:23
↓ 5 callers
Method
Show
()
spaceshipgame.go:18
↓ 5 callers
Method
UpdateRoomDetails
()
shipdesignmenu.go:377
↓ 5 callers
Method
UpdateRoomState
()
shipdesignmenu.go:353
↓ 5 callers
Method
UpdateShipDetails
()
shipdesignmenu.go:405
↓ 4 callers
Method
CenterShip
Centers the map of the ship in the main view.
spaceshipgame.go:122
↓ 4 callers
Method
ChangeAmount
returns amount of item in (L) for items and liquid, or in molar value for gasses
storagesystem.go:16
↓ 4 callers
Method
GetCapacity
(storageType StorageType)
storagesystem.go:126
↓ 4 callers
Method
GetEarth
()
galaxy.go:138
↓ 4 callers
Method
GetName
()
storagesystem.go:13
↓ 4 callers
Method
GetSpeed
()
ship.go:259
↓ 4 callers
Method
GetVisitSpeed
()
location.go:26
↓ 4 callers
Method
InitStats
()
shipsystem.go:26
↓ 4 callers
Method
IsAwake
()
crew.go:201
↓ 4 callers
Function
NewShip
Inits a new Ship. Ship systems but no modules or crew. Add those yourself you lazy bum.
ship.go:48
↓ 4 callers
Method
SetTarget
(t float64)
ui_viewmenu.go:30
↓ 4 callers
Method
UpdateInstalledRoomList
()
shipdesignmenu.go:360
↓ 4 callers
Method
UpdateSelectionAnimation
()
shipdesignmenu.go:342
↓ 3 callers
Method
AddLogMessage
(message string)
log.go:25
↓ 3 callers
Method
AddMission
Adds a mission to the player's missionlog.
player.go:34
↓ 3 callers
Method
CalcShipBounds
Calculates the bounding box for the current ship configuration, as well as the volume.
ship.go:225
↓ 3 callers
Function
CreateRoomFromTemplate
Instantiates a room from a template. "dims" (width, height) is optional, allowing the caller to provide custom dimensions. If either dimension is zero
roomtemplates.go:348
↓ 3 callers
Method
CreateRoomMap
Creates the map for the room.
room.go:59
↓ 3 callers
Method
DrawMapObject
Draws an object to the map (NOT the marker layer!). Use for static bodies.
galaxymapview.go:166
↓ 3 callers
Method
DrawRoom
Draws a room onto the shipmap
ship.go:220
↓ 3 callers
Function
GenerateGoToMission
(s *Ship, dest, avoid Locatable)
mission.go:124
↓ 3 callers
Method
GeneratePreview
()
galaxycreatemenu.go:116
↓ 3 callers
Method
Init
()
startmenu.go:18
↓ 3 callers
Function
LoadShipTemplate
(path string)
shiptemplates.go:43
↓ 3 callers
Function
NewCommDialog
(from, to, picFile, message string)
dialogs.go:185
↓ 3 callers
Function
NewPersonContact
Creates a person with given name.
person.go:22
↓ 3 callers
Method
SetupFromTemplate
we are assuming the ship's defaults are already set
shiptemplates.go:66
↓ 3 callers
Method
Store
(item Storable)
storagesystem.go:70
↓ 3 callers
Method
UpdateCourse
()
ui_setcourse.go:114
↓ 3 callers
Method
UpdateGalaxyInfo
()
ui_galaxymenu.go:148
↓ 3 callers
Method
UpdateInbox
()
ui_commmenu.go:121
↓ 3 callers
Method
UpdateSelectedInfo
()
ui_galaxymenu.go:163
↓ 3 callers
Method
UpdateSpeed
(simSpeed int)
ui_time.go:41
↓ 3 callers
Method
UpdateTransmissions
()
ui_commmenu.go:146
↓ 3 callers
Method
calcLocalMapCoord
TODO: cache this computation for gfactor and the camera, it doesn't change often.
galaxymapview.go:148
↓ 2 callers
Method
AddConnection
Tries to connect room to another. Finds the intersection of the two rooms and puts doors there! If rooms not properly lined up, does nothing.
room.go:78
↓ 2 callers
Method
AddCrewman
(c *Crewman)
ship.go:199
↓ 2 callers
Method
AddRandomTransmission
(tick int)
comms.go:55
↓ 2 callers
Method
AddRoom
Adds a room to the ship and connects it. If room is an invalid add (ex. overlaps too much with an existing room), does nothing.
ship.go:143
↓ 2 callers
Method
CalcMaxBurnTime
(V_f, D float64)
navigation.go:131
↓ 2 callers
Method
CheckRoomValidAdd
Checks to see if the provided room collides illegally with another in the ship. If there is no collision at all, still reports true
ship.go:188
↓ 2 callers
Method
CompileStats
()
ship.go:116
↓ 2 callers
Method
ConnectRooms
(r1, r2 *Room)
ship.go:214
↓ 2 callers
Method
ConsumeJob
(j Job)
crew.go:208
↓ 2 callers
Method
CreateShip
()
shipcreatemenu.go:103
↓ 2 callers
Method
Dims
()
galaxy.go:53
↓ 2 callers
Method
GenerateRandomSubSector
()
galaxy.go:77
↓ 2 callers
Method
GenerateStart
()
galaxy.go:61
↓ 2 callers
Method
GetFilledVolume
(storageType StorageType)
storagesystem.go:122
↓ 2 callers
Method
GetIncrement
()
spaceshipgame.go:236
↓ 2 callers
Method
GetLocation
(c Coordinates)
galaxy.go:101
↓ 2 callers
Method
GetSubSector
GetSubSector attempts to retreive a subsector. If none exists, returns nil.
galaxy.go:179
↓ 2 callers
Method
GetSystem
()
shipsystem.go:124
↓ 2 callers
Function
GetTimeString
(t int)
spacetime.go:15
↓ 2 callers
Method
GetVisitDistance
()
location.go:25
↓ 2 callers
Method
HasEffect
(e EffectID)
crew.go:217
↓ 2 callers
Method
HasStatus
(s StatusID)
crew.go:222
↓ 2 callers
Method
Init
(p *Player)
ui_gamemenu.go:27
↓ 2 callers
Method
Init
(comm *CommSystem)
ui_commmenu.go:27
↓ 2 callers
Method
InitVaccuum
removes all gas from the atmosphere, leaving a vaccuum.
gas.go:83
↓ 2 callers
Function
NewCoordinate
NewCoordinate makes a new Coordinate object, defaulted to the center of the galaxy.
location.go:153
↓ 2 callers
Function
NewCreateGalaxyMenu
()
galaxycreatemenu.go:27
↓ 2 callers
Function
NewCrewman
()
crew.go:48
↓ 2 callers
Function
NewGalaxy
(name string, radius, densityFactor int)
galaxy.go:32
↓ 2 callers
Function
NewPlanet
NewPlanet creates a planet. c is the coords of the starsystem. orbit is the distance in meters from the star
starsystem.go:150
↓ 2 callers
Function
NewSaveDialog
(dirPath, ext, default_filename string, onSave func(filepath string))
dialogs.go:104
next →
1–100 of 358, ranked by callers