MCPcopy Create free account

hub / github.com/BenNicholls/spaceshippers / functions

Functions358 in github.com/BenNicholls/spaceshippers

↓ 61 callersMethodInit
()
dialogs.go:208
↓ 32 callersMethodSize
()
room.go:50
↓ 26 callersMethodGetCoords
it is known
location.go:23
↓ 19 callersMethodGetAmount
()
storagesystem.go:15
↓ 17 callersMethodInit
(pos vec.Coord, depth int, room *Room)
shipdesignmenu.go:428
↓ 15 callersMethodHide
()
spaceshipgame.go:19
↓ 14 callersMethodToggleHighlight
()
galaxymapview.go:216
↓ 12 callersMethodGetName
()
task.go:8
↓ 12 callersFunctionfireSpaceLogEvent
(message string)
log.go:16
↓ 10 callersMethodAddGas
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 callersMethodGetMolarValue
(g GasType)
gas.go:178
↓ 8 callersMethodInit
(s *Ship)
ui_shipmenu.go:26
↓ 8 callersFunctionNewUniquePlanet
(c Coordinates, orbit, radius, mass float64, name string, pType PlanetType)
starsystem.go:172
↓ 8 callersMethodPartialPressure
(g GasType)
gas.go:166
↓ 7 callersMethodActivateMenu
Activates a menu (crew, rooms, systems, etc). Deactivates menu if menu already active.
spaceshipgame.go:218
↓ 7 callersMethodBounds
()
room.go:54
↓ 7 callersMethodCalcVector
(c2 Coordinates)
location.go:302
↓ 7 callersMethodGetItemVolume
(name string)
storagesystem.go:114
↓ 7 callersMethodGetStat
(StatType)
shipsystem.go:22
↓ 7 callersMethodUpdate
()
mission.go:20
↓ 6 callersMethodGetDescription
()
task.go:9
↓ 6 callersMethodGetSector
Retreives sector at (x, y). Returns nil if x,y out of bounds (bad).
galaxy.go:94
↓ 6 callersMethodGetStorageType
()
storagesystem.go:18
↓ 6 callersMethodIsIn
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 callersMethodRemoveGas
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 callersMethodAddStatus
(s StatusID)
crew.go:227
↓ 5 callersMethodCenterView
()
shipdesignmenu.go:239
↓ 5 callersFunctionGetDateString
(t int)
spacetime.go:23
↓ 5 callersMethodGetLocations
()
location.go:24
↓ 5 callersMethodGetName
()
mission.go:23
↓ 5 callersMethodShow
()
spaceshipgame.go:18
↓ 5 callersMethodUpdateRoomDetails
()
shipdesignmenu.go:377
↓ 5 callersMethodUpdateRoomState
()
shipdesignmenu.go:353
↓ 5 callersMethodUpdateShipDetails
()
shipdesignmenu.go:405
↓ 4 callersMethodCenterShip
Centers the map of the ship in the main view.
spaceshipgame.go:122
↓ 4 callersMethodChangeAmount
returns amount of item in (L) for items and liquid, or in molar value for gasses
storagesystem.go:16
↓ 4 callersMethodGetCapacity
(storageType StorageType)
storagesystem.go:126
↓ 4 callersMethodGetEarth
()
galaxy.go:138
↓ 4 callersMethodGetName
()
storagesystem.go:13
↓ 4 callersMethodGetSpeed
()
ship.go:259
↓ 4 callersMethodGetVisitSpeed
()
location.go:26
↓ 4 callersMethodInitStats
()
shipsystem.go:26
↓ 4 callersMethodIsAwake
()
crew.go:201
↓ 4 callersFunctionNewShip
Inits a new Ship. Ship systems but no modules or crew. Add those yourself you lazy bum.
ship.go:48
↓ 4 callersMethodSetTarget
(t float64)
ui_viewmenu.go:30
↓ 4 callersMethodUpdateInstalledRoomList
()
shipdesignmenu.go:360
↓ 4 callersMethodUpdateSelectionAnimation
()
shipdesignmenu.go:342
↓ 3 callersMethodAddLogMessage
(message string)
log.go:25
↓ 3 callersMethodAddMission
Adds a mission to the player's missionlog.
player.go:34
↓ 3 callersMethodCalcShipBounds
Calculates the bounding box for the current ship configuration, as well as the volume.
ship.go:225
↓ 3 callersFunctionCreateRoomFromTemplate
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 callersMethodCreateRoomMap
Creates the map for the room.
room.go:59
↓ 3 callersMethodDrawMapObject
Draws an object to the map (NOT the marker layer!). Use for static bodies.
galaxymapview.go:166
↓ 3 callersMethodDrawRoom
Draws a room onto the shipmap
ship.go:220
↓ 3 callersFunctionGenerateGoToMission
(s *Ship, dest, avoid Locatable)
mission.go:124
↓ 3 callersMethodGeneratePreview
()
galaxycreatemenu.go:116
↓ 3 callersMethodInit
()
startmenu.go:18
↓ 3 callersFunctionLoadShipTemplate
(path string)
shiptemplates.go:43
↓ 3 callersFunctionNewCommDialog
(from, to, picFile, message string)
dialogs.go:185
↓ 3 callersFunctionNewPersonContact
Creates a person with given name.
person.go:22
↓ 3 callersMethodSetupFromTemplate
we are assuming the ship's defaults are already set
shiptemplates.go:66
↓ 3 callersMethodStore
(item Storable)
storagesystem.go:70
↓ 3 callersMethodUpdateCourse
()
ui_setcourse.go:114
↓ 3 callersMethodUpdateGalaxyInfo
()
ui_galaxymenu.go:148
↓ 3 callersMethodUpdateInbox
()
ui_commmenu.go:121
↓ 3 callersMethodUpdateSelectedInfo
()
ui_galaxymenu.go:163
↓ 3 callersMethodUpdateSpeed
(simSpeed int)
ui_time.go:41
↓ 3 callersMethodUpdateTransmissions
()
ui_commmenu.go:146
↓ 3 callersMethodcalcLocalMapCoord
TODO: cache this computation for gfactor and the camera, it doesn't change often.
galaxymapview.go:148
↓ 2 callersMethodAddConnection
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 callersMethodAddCrewman
(c *Crewman)
ship.go:199
↓ 2 callersMethodAddRandomTransmission
(tick int)
comms.go:55
↓ 2 callersMethodAddRoom
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 callersMethodCalcMaxBurnTime
(V_f, D float64)
navigation.go:131
↓ 2 callersMethodCheckRoomValidAdd
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 callersMethodCompileStats
()
ship.go:116
↓ 2 callersMethodConnectRooms
(r1, r2 *Room)
ship.go:214
↓ 2 callersMethodConsumeJob
(j Job)
crew.go:208
↓ 2 callersMethodCreateShip
()
shipcreatemenu.go:103
↓ 2 callersMethodDims
()
galaxy.go:53
↓ 2 callersMethodGenerateRandomSubSector
()
galaxy.go:77
↓ 2 callersMethodGenerateStart
()
galaxy.go:61
↓ 2 callersMethodGetFilledVolume
(storageType StorageType)
storagesystem.go:122
↓ 2 callersMethodGetIncrement
()
spaceshipgame.go:236
↓ 2 callersMethodGetLocation
(c Coordinates)
galaxy.go:101
↓ 2 callersMethodGetSubSector
GetSubSector attempts to retreive a subsector. If none exists, returns nil.
galaxy.go:179
↓ 2 callersMethodGetSystem
()
shipsystem.go:124
↓ 2 callersFunctionGetTimeString
(t int)
spacetime.go:15
↓ 2 callersMethodGetVisitDistance
()
location.go:25
↓ 2 callersMethodHasEffect
(e EffectID)
crew.go:217
↓ 2 callersMethodHasStatus
(s StatusID)
crew.go:222
↓ 2 callersMethodInit
(p *Player)
ui_gamemenu.go:27
↓ 2 callersMethodInit
(comm *CommSystem)
ui_commmenu.go:27
↓ 2 callersMethodInitVaccuum
removes all gas from the atmosphere, leaving a vaccuum.
gas.go:83
↓ 2 callersFunctionNewCoordinate
NewCoordinate makes a new Coordinate object, defaulted to the center of the galaxy.
location.go:153
↓ 2 callersFunctionNewCreateGalaxyMenu
()
galaxycreatemenu.go:27
↓ 2 callersFunctionNewCrewman
()
crew.go:48
↓ 2 callersFunctionNewGalaxy
(name string, radius, densityFactor int)
galaxy.go:32
↓ 2 callersFunctionNewPlanet
NewPlanet creates a planet. c is the coords of the starsystem. orbit is the distance in meters from the star
starsystem.go:150
↓ 2 callersFunctionNewSaveDialog
(dirPath, ext, default_filename string, onSave func(filepath string))
dialogs.go:104
next →1–100 of 358, ranked by callers