Methods
(static) collision(player, ladder)
Checks for collision between a player and a ladder.
Parameters:
Name | Type | Description |
---|---|---|
player |
the player we want to check | |
ladder |
the ladder we want to check |
- Source:
(static) doesPlayerHaveKey(inventory)
Checks to see if the player has a key in the inventory.
Parameters:
Name | Type | Description |
---|---|---|
inventory |
the inventory of the player that needs checked |
- Source:
placeInRandomRoom(map)
Places the ladder in a random room.
Parameters:
Name | Type | Description |
---|---|---|
map |
the game map |
- Source: