MCPcopy Create free account

hub / github.com/amilich/isometric-city / functions

Functions927 in github.com/amilich/isometric-city

↓ 2 callersFunctionseededRandomQueue
(seed: number)
src/components/coaster/CoasterGrid.tsx:995
↓ 2 callersFunctionselectSpriteSource
( buildingType: BuildingType, building: Building, tileX: number, tileY: number, activePack: SpritePa
src/components/game/buildingSprite.ts:76
↓ 2 callersFunctionserializeAndCompressForDBAsync
(state: unknown)
src/lib/saveWorkerManager.ts:218
↓ 2 callersFunctionsetActiveSpritePack
(pack: SpritePack)
src/lib/renderConfig.ts:773
↓ 2 callersFunctionshrinkBoolGrid
(oldGrid: boolean[][])
src/context/GameContext.tsx:1375
↓ 2 callersFunctionupdatePlayerCount
( roomCode: string, count: number )
src/lib/multiplayer/database.ts:221
↓ 2 callersFunctionupgradeServiceBuilding
(state: GameState, x: number, y: number)
src/lib/simulation.ts:1351
↓ 1 callersFunctionanalyzePathForBridges
()
src/components/game/CanvasIsometricGrid.tsx:2283
↓ 1 callersFunctionapplyWeatherEffectsToGuest
(guest: Guest, weather: WeatherType)
src/context/CoasterContext.tsx:133
↓ 1 callersFunctionassignPath
(guest: Guest, path: { x: number; y: number }[])
src/components/coaster/guests/guestSystem.ts:409
↓ 1 callersFunctionbezierPositionAndAngle
Calculate position and angle on a quadratic bezier curve
src/components/game/trainSystem.ts:124
↓ 1 callersFunctionbuildBridges
Build bridges by converting water tiles to bridge tiles
src/lib/simulation.ts:981
↓ 1 callersFunctionbuildCityLookupCache
* Build the city lookup cache for O(1) tile->city lookups
src/lib/cityManager.ts:63
↓ 1 callersFunctionbuildMenuItems
()
src/components/coaster/CommandMenu.tsx:75
↓ 1 callersFunctionbuildMenuItems
()
src/components/ui/CommandMenu.tsx:50
↓ 1 callersFunctioncalculateBridgeEdges
( x: number, y: number, adjustedY: number, orientation: 'ns' | 'ew' )
src/components/game/bridgeDrawing.ts:92
↓ 1 callersFunctioncalculateCityEconomy
( city: City, grid: Tile[][], gridSize: number, forceRecalculate = false )
src/lib/cityManager.ts:120
↓ 1 callersFunctioncalculateFollowingSpeedMultiplier
* Calculate speed multiplier based on distance to train ahead * Returns 1.0 for full speed, lower values to slow down * Never returns 0 to prevent d
src/components/game/trainSystem.ts:560
↓ 1 callersFunctioncalculateMonthlyUpkeep
(grid: Tile[][])
src/context/CoasterContext.tsx:677
↓ 1 callersFunctioncalculateStaffWages
(staff: Staff[])
src/context/CoasterContext.tsx:698
↓ 1 callersFunctioncalculateStats
(grid: Tile[][], size: number, budget: Budget, taxRate: number, effectiveTaxRate: number, services: ServiceCov
src/lib/simulation.ts:1757
↓ 1 callersFunctioncanEnterTileFromDirection
(gridData: Tile[][], gridSizeValue: number, x: number, y: number, direction: CarDirection)
src/components/game/utils.ts:34
↓ 1 callersFunctioncanPlaceMultiTileBuilding
( grid: Tile[][], x: number, y: number, width: number, height: number, gridSize: number )
src/lib/simulation.ts:2574
↓ 1 callersFunctioncheckAndCreateBridges
Check and create bridges after road or rail placement
src/lib/simulation.ts:1031
↓ 1 callersFunctioncheckForDiscoverableCities
( grid: Tile[][], gridSize: number, adjacentCities: AdjacentCity[] )
src/lib/simulation.ts:501
↓ 1 callersFunctioncheckSaved
()
src/context/CoasterContext.tsx:1481
↓ 1 callersFunctioncheckTouch
()
src/hooks/useMobile.ts:34
↓ 1 callersFunctioncheckWebPSupport
* Check if the browser supports WebP format * Uses a small test image to detect support
src/components/game/imageLoader.ts:26
↓ 1 callersFunctioncollectLightSources
( grid: Tile[][], gridSize: number, visibleMinSum: number, visibleMaxSum: number, viewLeft: number,
src/components/game/lightingSystem.ts:108
↓ 1 callersFunctioncollectLightSources
* Collect light sources from visible tiles
src/components/coaster/lightingSystem.ts:135
↓ 1 callersFunctioncompressGameState
(state: GameState)
src/lib/shareState.ts:106
↓ 1 callersMethodconnect
()
src/lib/multiplayer/supabaseProvider.ts:94
↓ 1 callersFunctionconvertToWebP
* Convert a PNG file to WebP
scripts/compress-images.mjs:57
↓ 1 callersFunctioncreateBridgeBuilding
( bridgeType: BridgeType, orientation: BridgeOrientation, variant: number, position: 'start' | 'middle
src/components/game/bridgeSystem.ts:210
↓ 1 callersFunctioncreateBridgeBuilding
Create a bridge building with all metadata
src/lib/simulation.ts:824
↓ 1 callersFunctioncreateBridgesOnPath
( state: GameState, pathTiles: { x: number; y: number }[], trackType: 'road' | 'rail' = 'road' )
src/lib/simulation.ts:1059
↓ 1 callersFunctioncreateEmptyTile
(x: number, y: number)
src/games/coaster/types/game.ts:548
↓ 1 callersFunctioncreateFreightTrain
* Create a new freight train with carriages
src/components/game/trainSystem.ts:272
↓ 1 callersFunctioncreateGameRoom
( roomCode: string, cityName: string, gameState: MultiplayerGameState )
src/lib/multiplayer/database.ts:91
↓ 1 callersFunctioncreateGuest
(entranceX: number, entranceY: number, gridSize: number = 64)
src/components/coaster/guests/guestSystem.ts:40
↓ 1 callersFunctioncreateInitialBudget
()
src/lib/simulation.ts:1091
↓ 1 callersFunctioncreateInitialStats
()
src/lib/simulation.ts:1104
↓ 1 callersFunctioncreatePassengerTrain
* Create a new passenger train with carriages
src/components/game/trainSystem.ts:200
↓ 1 callersFunctioncreateShareUrl
(state: GameState)
src/lib/shareState.ts:199
↓ 1 callersFunctiondeleteCityState
(cityId: string)
src/context/GameContext.tsx:639
↓ 1 callersFunctiondetectBridgeOpportunity
Detect if placing a road or rail creates a bridge opportunity from this tile
src/lib/simulation.ts:944
↓ 1 callersFunctiondrawAirplanes
( ctx: CanvasRenderingContext2D, airplanes: Airplane[], viewBounds: { viewLeft: number; viewTop: number;
src/components/game/drawAircraft.ts:213
↓ 1 callersFunctiondrawBallast
* Draw the ballast (gravel bed) foundation for DOUBLE tracks
src/components/game/railSystem.ts:290
↓ 1 callersFunctiondrawBaseballPlayer
* Draw a baseball player
src/components/game/drawPedestrians.ts:682
↓ 1 callersFunctiondrawBasketballPlayer
* Draw a basketball player
src/components/game/drawPedestrians.ts:490
↓ 1 callersFunctiondrawBeachMat
* Draw a person lying on a beach mat/towel
src/components/game/drawPedestrians.ts:1547
↓ 1 callersFunctiondrawBeachSwimmer
* Draw a beach swimmer (person swimming in open water near shore) * Different from pool swimmer - more realistic ocean swimming
src/components/game/drawPedestrians.ts:1454
↓ 1 callersFunctiondrawBoardingGuests
* Draw boarding guests at a station tile * Shows guests walking toward or away from the coaster car
src/components/coaster/CoasterGrid.tsx:1817
↓ 1 callersFunctiondrawBobsledCar
(ctx: CanvasRenderingContext2D, carLength: number, carWidth: number, primaryColor: string, isLoading: boolean,
src/components/coaster/CoasterGrid.tsx:2200
↓ 1 callersFunctiondrawBoxCar
* Draw box car (freight)
src/components/game/trainSystem.ts:1364
↓ 1 callersFunctiondrawBridgeTile
( ctx: CanvasRenderingContext2D, x: number, y: number, building: Building, gridX: number, gridY: n
src/components/game/bridgeDrawing.ts:273
↓ 1 callersFunctiondrawCaboose
* Draw caboose
src/components/game/trainSystem.ts:1449
↓ 1 callersFunctiondrawCarriage
* Draw a single train carriage on the correct track based on direction * Handles curve interpolation for smooth movement on curved tracks
src/components/game/trainSystem.ts:1034
↓ 1 callersFunctiondrawChainLift
( ctx: CanvasRenderingContext2D, startX: number, startY: number, direction: TrackDirection, startHei
src/components/coaster/tracks/trackDrawing.ts:1300
↓ 1 callersFunctiondrawCoasterCar
( ctx: CanvasRenderingContext2D, x: number, y: number, direction: string, pitch: number = 0, ca
src/components/coaster/CoasterGrid.tsx:2296
↓ 1 callersFunctiondrawColoredGlows
( ctx: CanvasRenderingContext2D, coloredGlows: ColoredGlow[], lightIntensity: number )
src/components/game/lightingSystem.ts:250
↓ 1 callersFunctiondrawColoredGlows
* Draw colored glows for atmosphere (after cutouts) * Keep these subtle to avoid washed out look
src/components/coaster/lightingSystem.ts:301
↓ 1 callersFunctiondrawConnectorBorders
()
src/components/game/bridgeDrawing.ts:399
↓ 1 callersFunctiondrawCrosswalks
(params: CrosswalkParams)
src/components/game/trafficSystem.ts:901
↓ 1 callersFunctiondrawCurvedTrack
( ctx: CanvasRenderingContext2D, startX: number, startY: number, startDir: TrackDirection, turnRight
src/components/coaster/tracks/trackDrawing.ts:460
↓ 1 callersFunctiondrawDogSimple
* Draw a simplified dog for performance
src/components/game/drawPedestrians.ts:466
↓ 1 callersFunctiondrawDogWalker
* Draw a dog walker - just uses the regular walking function which handles dogs
src/components/game/drawPedestrians.ts:1049
↓ 1 callersFunctiondrawEntranceGate
* Draw an entrance gate at the edge of the map * This creates a decorative archway/gate structure that marks the park entrance * The gate is oriente
src/components/coaster/CoasterGrid.tsx:408
↓ 1 callersFunctiondrawEntranceGateStructure
* Draw the actual gate structure at a given position and orientation
src/components/coaster/CoasterGrid.tsx:496
↓ 1 callersFunctiondrawFlatCar
* Draw flat car (freight)
src/components/game/trainSystem.ts:1422
↓ 1 callersFunctiondrawFlyingCar
(ctx: CanvasRenderingContext2D, carLength: number, carWidth: number, primaryColor: string, isLoading: boolean,
src/components/coaster/CoasterGrid.tsx:2237
↓ 1 callersFunctiondrawGreenBaseTile
( ctx: CanvasRenderingContext2D, x: number, y: number, tile: Tile, currentZoom: number )
src/components/game/drawing.ts:171
↓ 1 callersFunctiondrawGreyBaseTile
( ctx: CanvasRenderingContext2D, x: number, y: number, _tile: Tile, currentZoom: number )
src/components/game/drawing.ts:208
↓ 1 callersFunctiondrawGuest
( ctx: CanvasRenderingContext2D, guest: Guest, tick: number )
src/components/coaster/guests/guestSystem.ts:142
↓ 1 callersFunctiondrawHelicopters
( ctx: CanvasRenderingContext2D, helicopters: Helicopter[], viewBounds: { viewLeft: number; viewTop: num
src/components/game/drawAircraft.ts:603
↓ 1 callersFunctiondrawHighlight
(sx: number, sy: number, fillColor = 'rgba(251, 191, 36, 0.3)', strokeColor = '#fbbf24')
src/components/coaster/CoasterGrid.tsx:3020
↓ 1 callersFunctiondrawIdlePerson
* Draw an idle person
src/components/game/drawPedestrians.ts:1245
↓ 1 callersFunctiondrawIncompleteTrackWarning
* Draw an animated warning indicator for incomplete track ends * Shows a small pulsing warning dot
src/components/coaster/CoasterGrid.tsx:1507
↓ 1 callersFunctiondrawInsetRails
* Draw inset rails for road overlays - darker borders to look embedded
src/components/game/railSystem.ts:1125
↓ 1 callersFunctiondrawInvertedCar
(ctx: CanvasRenderingContext2D, carLength: number, carWidth: number, primaryColor: string, isLoading: boolean,
src/components/coaster/CoasterGrid.tsx:2143
↓ 1 callersFunctiondrawIsometricTile
(ctx: CanvasRenderingContext2D, x: number, y: number, tile: Tile, highlight: boolean, currentZoom: number, ski
src/components/game/CanvasIsometricGrid.tsx:1149
↓ 1 callersFunctiondrawJogger
* Draw a jogger
src/components/game/drawPedestrians.ts:987
↓ 1 callersFunctiondrawLargeBridge
* Draw a large bridge (steel truss)
src/components/game/bridgeSystem.ts:550
↓ 1 callersFunctiondrawLightCutouts
( ctx: CanvasRenderingContext2D, lightCutouts: LightCutout[], lightIntensity: number, isMobile: boolea
src/components/game/lightingSystem.ts:174
↓ 1 callersFunctiondrawLightCutouts
* Draw light cutouts to remove darkness around light sources
src/components/coaster/lightingSystem.ts:210
↓ 1 callersFunctiondrawLocomotive
* Draw locomotive
src/components/game/trainSystem.ts:1202
↓ 1 callersFunctiondrawLogCar
(ctx: CanvasRenderingContext2D, carLength: number, carWidth: number, isLoading: boolean, guestCount: number, c
src/components/coaster/CoasterGrid.tsx:2048
↓ 1 callersFunctiondrawLoopTrack
( ctx: CanvasRenderingContext2D, startX: number, startY: number, direction: TrackDirection, loopHeig
src/components/coaster/tracks/trackDrawing.ts:1097
↓ 1 callersFunctiondrawMediumActivityPedestrian
* Draw medium detail activity pedestrian
src/components/game/drawPedestrians.ts:376
↓ 1 callersFunctiondrawMediumBridge
* Draw a medium bridge (concrete)
src/components/game/bridgeSystem.ts:476
↓ 1 callersFunctiondrawMediumWalkingPedestrian
* Draw medium detail walking pedestrian
src/components/game/drawPedestrians.ts:345
↓ 1 callersFunctiondrawMetalSupport
* Draw a metal support structure - clean industrial steel with minimal bracing * Modern steel coaster aesthetic with I-beam columns and simple connec
src/components/coaster/tracks/trackDrawing.ts:958
↓ 1 callersFunctiondrawMineCar
(ctx: CanvasRenderingContext2D, carLength: number, carWidth: number, primaryColor: string, isLoading: boolean,
src/components/coaster/CoasterGrid.tsx:2095
↓ 1 callersFunctiondrawNavigationLights
* Draw navigation lights on top of the plane sprite * Draws in world space using the plane's actual flight angle * Only shows lights that would be v
src/components/game/drawAircraft.ts:349
↓ 1 callersFunctiondrawPassengerCar
* Draw passenger car
src/components/game/trainSystem.ts:1336
↓ 1 callersFunctiondrawPathTile
( ctx: CanvasRenderingContext2D, x: number, y: number, gridX: number, gridY: number, grid: Tile[][
src/components/coaster/CoasterGrid.tsx:780
↓ 1 callersFunctiondrawPedestrians
( ctx: CanvasRenderingContext2D, pedestrians: Pedestrian[], viewBounds: { viewLeft: number; viewTop: num
src/components/game/drawPedestrians.ts:76
↓ 1 callersFunctiondrawPicnicker
(ctx: CanvasRenderingContext2D, ped: Pedestrian)
src/components/game/drawPedestrians.ts:937
↓ 1 callersFunctiondrawPillar
( ctx: CanvasRenderingContext2D, px: number, py: number, pillarW: number, pillarH: number, support
src/components/game/bridgeDrawing.ts:193
↓ 1 callersFunctiondrawPlaceholderBuilding
( ctx: CanvasRenderingContext2D, x: number, y: number, buildingType: string, tileWidth: number, ti
src/components/game/placeholders.ts:62
← previousnext →301–400 of 927, ranked by callers