Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awdng/triebwerk
/ functions
Functions
139 in github.com/awdng/triebwerk
⨍
Functions
139
◇
Types & classes
28
↓ 13 callers
Method
getPolygon
()
model/rect_collider.go:148
↓ 12 callers
Method
rotateRectPoint
(theta float32, p *Point)
model/rect_collider.go:104
↓ 9 callers
Function
NewRectCollider
NewRectCollider creates a new rectangle collider
model/rect_collider.go:40
↓ 7 callers
Method
Close
(writeWait time.Duration, graceful bool)
model/player.go:11
↓ 7 callers
Method
GameTime
GameTime returns the current game time since start in milliseconds
model/game.go:77
↓ 7 callers
Method
GetPlayers
GetPlayers returns the PlayerList
model/game.go:82
↓ 7 callers
Function
doPolygonsIntersect
(a Polygon, b Polygon)
model/rect_collider.go:205
↓ 6 callers
Method
Encode
(id int, currentGameTime uint32, message *model.NetworkMessage)
game/network_manager.go:40
↓ 6 callers
Method
Identifier
()
model/player.go:16
↓ 5 callers
Method
ChangePosition
ChangePosition of Collider
model/rect_collider.go:122
↓ 5 callers
Method
IsAlive
IsAlive ...
model/player.go:217
↓ 5 callers
Function
NewPlayer
NewPlayer creates a new player object
model/player.go:51
↓ 4 callers
Method
HandleMovement
HandleMovement ...
model/player.go:105
↓ 4 callers
Method
IsCollidingWithPlayer
IsCollidingWithPlayer ...
model/projectile.go:17
↓ 4 callers
Method
getPolygon
()
model/map.go:909
↓ 3 callers
Method
GetPlayerCount
GetPlayerCount ...
model/game.go:94
↓ 3 callers
Method
GetRandomSpawn
GetRandomSpawn Point
model/map.go:998
↓ 3 callers
Method
IsCollidingWithEnvironment
IsCollidingWithEnvironment ...
model/projectile.go:29
↓ 3 callers
Function
NewMap
NewMap creates a new map object
model/map.go:922
↓ 3 callers
Method
Send
Send data to a client
game/network_manager.go:161
↓ 3 callers
Method
doPolygonsIntersect
(a Polygon, b Polygon)
model/rect_collider.go:201
↓ 2 callers
Method
AuthorizePlayer
(string, *model.Player)
game/controller.go:41
↓ 2 callers
Method
CheckStartConditions
CheckStartConditions the gameserver loop
game/controller.go:106
↓ 2 callers
Method
EndGame
(*model.GameState)
game/controller.go:40
↓ 2 callers
Method
GetAddress
()
game/network_manager.go:47
↓ 2 callers
Method
InProgress
InProgress ...
model/game.go:65
↓ 2 callers
Method
IsInPolygon
IsInPolygon adapted from https://wrf.ecse.rpi.edu/Research/Short_Notes/pnpoly.html
model/point.go:32
↓ 2 callers
Function
NewGameState
NewGameState ...
model/game.go:25
↓ 2 callers
Method
SendHeartbeat
(*model.GameState)
game/controller.go:39
↓ 2 callers
Method
Start
Start handling network connections
game/network_manager.go:97
↓ 2 callers
Method
String
()
model/player.go:243
↓ 2 callers
Method
Write
(data []byte)
model/player.go:13
↓ 2 callers
Method
buildServerState
(gameState *model.GameState)
infra/master_server.go:101
↓ 2 callers
Method
collisionBack
(otherPolygon Polygon)
model/rect_collider.go:188
↓ 2 callers
Method
collisionFront
(otherPolygon Polygon)
model/rect_collider.go:175
↓ 2 callers
Method
collisionPolygon
(otherPolygon Polygon)
model/rect_collider.go:154
↓ 2 callers
Function
normalize
(v *Point)
model/point.go:44
↓ 1 callers
Method
AddPlayer
AddPlayer to the game
model/game.go:106
↓ 1 callers
Method
ApplyMovement
ApplyMovement ...
model/projectile.go:11
↓ 1 callers
Method
BroadcastGameEnd
BroadcastGameEnd ...
game/network_manager.go:204
↓ 1 callers
Method
BroadcastGameStart
BroadcastGameStart ...
game/network_manager.go:182
↓ 1 callers
Method
BroadcastGameState
BroadcastGameState ...
game/network_manager.go:167
↓ 1 callers
Method
CalcDirection
CalcDirection calculates the direction vector of the collider
model/rect_collider.go:88
↓ 1 callers
Method
Decode
(data []byte)
game/network_manager.go:41
↓ 1 callers
Method
DirectionTo
DirectionTo ...
model/point.go:14
↓ 1 callers
Method
Disconnect
Disconnect Client from the network
model/player.go:232
↓ 1 callers
Method
End
End ...
model/game.go:58
↓ 1 callers
Method
ForceDisconnect
ForceDisconnect of Player
game/network_manager.go:147
↓ 1 callers
Method
GetAddress
GetAddress ...
transport/websocket.go:41
↓ 1 callers
Method
GetNewPlayerID
GetNewPlayerID ...
model/game.go:101
↓ 1 callers
Method
GetServerState
()
game/controller.go:38
↓ 1 callers
Method
HandleRespawn
HandleRespawn ...
model/player.go:79
↓ 1 callers
Method
HandleWeapons
HandleWeapons ...
model/player.go:93
↓ 1 callers
Method
HasEnded
HasEnded ...
model/game.go:72
↓ 1 callers
Method
HeartBeat
HeartBeat ...
game/controller.go:92
↓ 1 callers
Method
Init
()
game/network_manager.go:46
↓ 1 callers
Method
Init
(address string)
game/controller.go:37
↓ 1 callers
Method
Init
Init the gameserver
game/controller.go:83
↓ 1 callers
Function
NewBinaryProtocol
NewBinaryProtocol ...
protocol/binary.go:17
↓ 1 callers
Function
NewConnection
NewConnection creates a new connection
transport/websocket.go:91
↓ 1 callers
Function
NewController
NewController creates a game instance
game/controller.go:45
↓ 1 callers
Function
NewMasterServerClient
NewMasterServerClient ...
infra/master_server.go:21
↓ 1 callers
Function
NewNetworkManager
NewNetworkManager ...
game/network_manager.go:79
↓ 1 callers
Function
NewPlayerManager
NewPlayerManager ...
game/player_manager.go:18
↓ 1 callers
Function
NewWeapon
NewWeapon ...
model/weapon.go:14
↓ 1 callers
Method
Ping
(writeWait time.Duration)
model/player.go:10
↓ 1 callers
Method
PrepareRead
(maxMessageSize int64, pongWait time.Duration)
model/player.go:14
↓ 1 callers
Method
PrepareWrite
(writeWait time.Duration)
model/player.go:12
↓ 1 callers
Method
Read
()
model/player.go:15
↓ 1 callers
Method
ReadyToStart
ReadyToStart ...
model/game.go:37
↓ 1 callers
Method
Register
Register a new Client with the NetworkService
game/network_manager.go:135
↓ 1 callers
Method
RegisterNewConnHandler
RegisterNewConnHandler is a callback for new connections
transport/websocket.go:46
↓ 1 callers
Method
RemovePlayer
RemovePlayer from the game
model/game.go:116
↓ 1 callers
Method
Rotate
Rotate applies a rotation to all points of the collider
model/rect_collider.go:95
↓ 1 callers
Method
Run
()
game/network_manager.go:48
↓ 1 callers
Method
SendGameStartToClient
SendGameStartToClient ...
game/network_manager.go:193
↓ 1 callers
Method
SendTime
SendTime back to player
game/network_manager.go:154
↓ 1 callers
Method
ShootAt
ShootAt ...
model/weapon.go:69
↓ 1 callers
Method
Unregister
(conn model.Connection)
game/network_manager.go:51
↓ 1 callers
Method
UnregisterConnHandler
UnregisterConnHandler is a callback for closed connections
transport/websocket.go:51
↓ 1 callers
Method
Update
Update ...
model/weapon.go:23
↓ 1 callers
Method
Update
Update Tick for Player
model/player.go:67
↓ 1 callers
Method
WithinDistanceOf
WithinDistanceOf radius to another Point
model/point.go:26
↓ 1 callers
Method
collisionBackRect
(other RectCollider)
model/rect_collider.go:168
↓ 1 callers
Method
collisionFrontRect
(other RectCollider)
model/rect_collider.go:161
↓ 1 callers
Method
gameLoop
()
game/controller.go:142
↓ 1 callers
Method
processInputs
(p *model.Player, players []*model.Player, timestep float32)
game/controller.go:114
↓ 1 callers
Method
reader
Reader constantly reads messages from the websocket connection and passes them to the NetworkManager. The application runs reader in a per-connection
game/network_manager.go:252
↓ 1 callers
Function
registerCallbacks
()
cmd/wasm/tanks.go:199
↓ 1 callers
Method
registerServer
RegisterServer ...
infra/master_server.go:47
↓ 1 callers
Method
run
()
game/network_manager.go:103
↓ 1 callers
Method
writer
Writer constantly reads messages from the players NetworkOut and sends it to the websocket connection. A goroutine running Writer is started for each
game/network_manager.go:219
Method
Authorize
Authorize Player
game/player_manager.go:25
Method
AuthorizePlayer
AuthorizePlayer ...
infra/master_server.go:84
Method
Close
Close sends the websocket CloseMessage https://tools.ietf.org/html/rfc6455#section-5.5.1 graceful == false closes immediatly
transport/websocket.go:105
Method
Decode
Decode player inputs
protocol/binary.go:53
Method
Encode
Encode data to send to clients
protocol/binary.go:36
Function
EncodePlayerInput
()
protocol/binary.go:112
Method
EndGame
EndGame ...
infra/master_server.go:72
Method
GetAddress
GetAddress ...
game/network_manager.go:92
next →
1–100 of 139, ranked by callers