import PlayerHandler from 'WTF-Adventure/WTF-Adventure/client/entity/character/player/playerhandler.js'
PlayerHandler
This is a player handler, responsible for all the Player callbacks without having to clutter up the entire file.
Constructor Summary
Public Constructor | ||
public |
constructor(game: Game, player: Player) Default constructor |
Member Summary
Public Members | ||
public |
Reference to the game Camera |
|
public |
Entities in the game |
|
public |
Instance of the game |
|
public |
Reference to input in the game |
|
public |
Reference to the player |
|
public |
Reference to the render layers |
|
public |
Reference to the server Socket |
Method Summary
Public Methods | ||
public |
Check the bounds of the player when they're not centered |
|
public |
Whether or not this player can be attacked |
|
public |
Load the the callbacks for the player |