Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PokemonUniverse/go-gameserver
/ functions
Functions
172 in github.com/PokemonUniverse/go-gameserver
⨍
Functions
172
◇
Types & classes
37
↓ 22 callers
Method
GetUID
()
interfaces/ICreature.go:11
↓ 11 callers
Method
GetPosition
()
interfaces/ICreature.go:15
↓ 6 callers
Method
GetTilePointLayer
Gets a TilePointLayer from layer index Returns: TilePointLayer object Bool, true if the TilePointLayer was found, otherwise false
world/TilePoint.go:44
↓ 5 callers
Method
GetHeader
GetHeader returns the header value of this message
data/netmsg/WalkMessage.go:30
↓ 4 callers
Method
GetDirection
()
interfaces/ICreature.go:17
↓ 4 callers
Method
GetPokemonId
()
data/pokemon/Pokemon.go:45
↓ 4 callers
Method
netSendCreatureMove
(_creature interfaces.ICreature, _from position.Position, _to position.Position, _teleport bool)
data/models/Player.go:233
↓ 3 callers
Method
AddVisibleCreature
Methods for all creatures who need to see other creatures
interfaces/ICreature.go:32
↓ 3 callers
Method
Close
()
server/ConnectionWrapper.go:32
↓ 3 callers
Method
GetName
()
interfaces/ICreature.go:12
↓ 3 callers
Method
GetPlayerPokemonId
()
data/models/PlayerPokemon.go:36
↓ 3 callers
Function
GetTilePoint
(_mapid, _x, _y int)
world/World.go:115
↓ 3 callers
Method
GetTilePoint
Gets a TilePoint from X, Y coordinates. Returns: TilePoint object Bool, true if the tilepoint was found, otherwise false
world/TilePointTable.go:18
↓ 3 callers
Method
GetUID
()
data/models/Creature.go:31
↓ 3 callers
Method
HasLayer
(_layer int)
world/TilePoint.go:36
↓ 3 callers
Method
OnCreatureTurn
(_creature ICreature)
interfaces/ICreature.go:27
↓ 3 callers
Method
RemoveVisibleCreature
(_creature ICreature)
interfaces/ICreature.go:33
↓ 3 callers
Method
SetPosition
(_position position.Position)
interfaces/ICreature.go:16
↓ 3 callers
Method
Walk
(_from position.Position, _to position.Position, _teleported bool, _direction uint16)
interfaces/ICreature.go:22
↓ 2 callers
Method
AddCreature
(_creature interfaces.ICreature, _checkEvents bool)
world/TilePointLayer.go:47
↓ 2 callers
Method
CanSeePosition
(_position position.Position)
data/models/Creature.go:146
↓ 2 callers
Function
GenerateKey
Generate a int64 key from X/Y-Coordinates Mr_Dark: I know there are some bits left, but that's because in the past we also had a Z-coordinate
world/World.go:67
↓ 2 callers
Method
GetPlayerId
Player specific methods
data/models/Player.go:155
↓ 2 callers
Method
GetPlayerId
Generic
interfaces/IPlayer.go:11
↓ 2 callers
Method
OnCreatureMove
Methods for all moving creatures
interfaces/ICreature.go:26
↓ 2 callers
Method
RemoveVisibleCreature
(_creature interfaces.ICreature)
data/models/Player.go:124
↓ 2 callers
Method
netSendMapData
(_direction uint16)
data/models/Player.go:249
↓ 1 callers
Method
AddDirection
(_dir uint16)
data/netmsg/TurnMessage.go:23
↓ 1 callers
Method
AddTile
(_tile *world.TilePoint)
data/netmsg/SendTilesMessage.go:22
↓ 1 callers
Method
AddVisibleCreature
(_creature interfaces.ICreature)
data/models/Player.go:114
↓ 1 callers
Method
AssignToPlayer
(_player interfaces.IPlayer)
server/ConnectionWrapper.go:43
↓ 1 callers
Method
CanMove
()
interfaces/ICreature.go:21
↓ 1 callers
Method
ConvertPlayerEntityToModel
(_entity *entities.Player)
data/PlayerHelper.go:21
↓ 1 callers
Function
CreateDatabaseConnection
()
data/DatabaseHelper.go:15
↓ 1 callers
Method
GetBlocking
()
world/TilePointLayer.go:27
↓ 1 callers
Method
GetHeader
GetHeader returns the header value of this message
data/netmsg/SendPlayerDataMessage.go:18
↓ 1 callers
Method
GetHeader
GetHeader returns the header value of this message
data/netmsg/CreatureAddMessage.go:18
↓ 1 callers
Method
GetHeader
GetHeader returns the header value of this message
data/netmsg/LoginMessage.go:31
↓ 1 callers
Method
GetHeader
GetHeader returns the header value of this message
data/netmsg/SendTilesMessage.go:18
↓ 1 callers
Method
GetHeader
GetHeader returns the header value of this message
data/netmsg/CreatureRemoveMessage.go:18
↓ 1 callers
Method
GetHeader
GetHeader returns the header value of this message
data/netmsg/TurnMessage.go:19
↓ 1 callers
Method
GetIndex
()
world/TilePoint.go:28
↓ 1 callers
Method
GetMapId
()
data/models/Creature.go:47
↓ 1 callers
Method
GetMoney
()
data/models/Player.go:159
↓ 1 callers
Function
GetMoveById
(_id int64)
data/pokemon/Manager.go:66
↓ 1 callers
Method
GetMoveId
()
data/pokemon/Move.go:15
↓ 1 callers
Method
GetPlayerPokemonMoveId
()
data/models/PlayerPokemonMove.go:29
↓ 1 callers
Method
GetPlayerUsingCredentials
(_orm *hood.Hood, _username, _password string)
data/PlayerHelper.go:34
↓ 1 callers
Method
GetTileId
()
world/TilePointTileLayer.go:19
↓ 1 callers
Method
GetTilePointLayers
()
world/TilePoint.go:32
↓ 1 callers
Method
GetTilePointTileLayer
Gets a TilePointTileLayer using layer index. Returns: TilePointTileLayer object Bool, true if the TilePointTileLayer was found, otherwise false
world/TilePointLayer.go:42
↓ 1 callers
Method
GetTilePointTileLayers
()
world/TilePointLayer.go:35
↓ 1 callers
Method
GetX
()
world/TilePoint.go:20
↓ 1 callers
Method
GetY
()
world/TilePoint.go:24
↓ 1 callers
Method
LinkMoves
(_hood *hood.Hood)
data/pokemon/Pokemon.go:24
↓ 1 callers
Method
LoadCharacterData
()
interfaces/ICreature.go:19
↓ 1 callers
Function
NewConnectionWrapper
(_socket *websocket.Conn)
server/ConnectionWrapper.go:21
↓ 1 callers
Function
NewMove
(_entity *entities.Move)
data/pokemon/Move.go:11
↓ 1 callers
Function
NewPlayerPokemon
(_hood *hood.Hood, _entity *entities.PlayerPokemon)
data/models/PlayerPokemon.go:18
↓ 1 callers
Function
NewPlayerPokemonMove
(_entity *entities.PlayerPokemonMove)
data/models/PlayerPokemonMove.go:15
↓ 1 callers
Function
NewPokemon
(_entity *entities.Pokemon)
data/pokemon/Pokemon.go:18
↓ 1 callers
Function
NewTilePoint
(_x, _y int)
world/TilePoint.go:13
↓ 1 callers
Function
NewTilePointLayer
(_layer int)
world/TilePointLayer.go:20
↓ 1 callers
Function
NewTilePointTable
(_mapName string)
world/TilePointTable.go:10
↓ 1 callers
Function
NewTilePointTileLayer
(_layer int, _tileId string)
world/TilePointTileLayer.go:10
↓ 1 callers
Method
ReadPacket
ReadPacket reads all data from a packet and puts it in the object
data/netmsg/LoginMessage.go:36
↓ 1 callers
Method
ReadPacket
ReadPacket reads all data from a packet and puts it in the object
data/netmsg/WalkMessage.go:35
↓ 1 callers
Method
ReceivePoller
Read data from socket stream
server/ConnectionWrapper.go:53
↓ 1 callers
Method
RemoveCreature
(_creature interfaces.ICreature, _checkEvents bool)
world/TilePointLayer.go:73
↓ 1 callers
Method
SendPoller
Write data to socket stream
server/ConnectionWrapper.go:71
↓ 1 callers
Method
SetBlocking
(_blocking interfaces.TileBlocking)
world/TilePointLayer.go:31
↓ 1 callers
Method
SetNetworkChans
Networking
interfaces/IPlayer.go:14
↓ 1 callers
Method
Turn
(_direction uint16)
interfaces/ICreature.go:23
↓ 1 callers
Method
WritePacket
WritePacket write the needed object data to a Packet and returns it
data/netmsg/WalkMessage.go:60
↓ 1 callers
Method
getOrAddTilePoint
Gets a TilePoint from X, Y coordinates. If the TilePoint doesn't exists it will be created. Returns: TilePoint object Bool, true if TilePoint is ne
world/TilePointTable.go:28
↓ 1 callers
Method
getOrAddTilePointLayer
Gets a TilePointLayer from layer index. If the TilePointLayer doesn't exists it will be created. Returns: TilePointLayer object Bool, true if TileP
world/TilePoint.go:52
↓ 1 callers
Method
getOrAddTilePointTileLayer
Gets a TilePointTileLayer using layer index. If the TilePointTileLayer doesn't exists it will be created. Returns: TilePointTileLayer object Bool,
world/TilePointLayer.go:99
↓ 1 callers
Method
getTimeSinceLastMove
()
data/models/Creature.go:154
↓ 1 callers
Method
init
()
data/models/Creature.go:24
↓ 1 callers
Function
initializeDatabase
()
main.go:78
↓ 1 callers
Function
internalAddCreature
*********************** Private Methods ************************/
game/Game.go:47
↓ 1 callers
Function
internalCreatureMove
(_creature interfaces.ICreature, _direction uint16)
game/Game.go:59
↓ 1 callers
Function
internalLoadWorldmap
(_hood *hood.Hood)
world/World.go:272
↓ 1 callers
Function
loadMap
(_hood *hood.Hood, _mapId int, _tilePointTable *TilePointTable)
world/World.go:279
↓ 1 callers
Function
loadMoves
(_hood *hood.Hood)
data/pokemon/Manager.go:28
↓ 1 callers
Method
loadMoves
(_hood *hood.Hood)
data/models/PlayerPokemon.go:40
↓ 1 callers
Method
loadPlayerPokemon
Player data loading
data/models/Player.go:135
↓ 1 callers
Function
loadPokemon
(_hood *hood.Hood)
data/pokemon/Manager.go:42
↓ 1 callers
Function
loadPokemonData
()
main.go:98
↓ 1 callers
Function
loadWorldmap
()
main.go:102
↓ 1 callers
Method
netHeaderTurn
(_netmessage *netmsg.TurnMessage)
data/models/Player.go:196
↓ 1 callers
Method
netHeaderWalk
(_netmessage *netmsg.WalkMessage)
data/models/Player.go:192
↓ 1 callers
Method
netReceiveMessages
()
data/models/Player.go:172
↓ 1 callers
Method
netSendCreatureAdd
(_creature interfaces.ICreature)
data/models/Player.go:294
↓ 1 callers
Method
netSendCreatureRemove
(_creature interfaces.ICreature)
data/models/Player.go:299
↓ 1 callers
Method
netSendCreatureTurn
(_creature interfaces.ICreature)
data/models/Player.go:242
↓ 1 callers
Method
netSendPlayerData
Networking - Send
data/models/Player.go:202
↓ 1 callers
Function
newGameServer
()
server/GameServer.go:33
↓ 1 callers
Function
parseFirstMessage
Check login credentials Returns nothing. If incomming packet is wrong connection is closed, otherwise the login result will be send to the client
server/GameServer.go:69
↓ 1 callers
Function
preInitialization
()
main.go:52
next →
1–100 of 172, ranked by callers