Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectManager ¶
type ObjectManager interface { RegisterPlayer(clientID int32, name string) playerpkg.Player RegisterShoot(player playerpkg.Player, x float32, y float32, dx float32, dy float32, startTime time.Time) shootpkg.Shoot RemovePlayer(id int32, clientID int32) int32 GetPlayers() []playerpkg.Player GetMap() mappkg.Map GetPlayerByID(id int32) (playerpkg.Player, bool) MovePlayer(player playerpkg.Player, dx float32, dy float32, speed float32, timeElapsed float32) SetPlayerPosition(player playerpkg.Player, x float32, y float32) Update() }
func NewObjectManager ¶
func NewObjectManager(game IGame, eventStream chan common.DestroyPlayerEvent, gameMap mappkg.Map) ObjectManager
Click to show internal directories.
Click to hide internal directories.