Constructor
new DOMUIManager(leftUI, rightUI, dataManager)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
leftUI |
ClubCrawler.DOMUserInterface.LeftUI | the left user interface |
rightUI |
ClubCrawler.DOMUserInterface.RightUI | the right user interface |
dataManager |
ClubCrawler.Data.dataManager | the data manager |
Members
dataManager :ClubCrawler.Data.dataManager
- Source:
The dataManager
Type:
- ClubCrawler.Data.dataManager
debugMessages :ClubCrawler.DOMUserInterface.DebugMessageBox
- Source:
Type:
healthBar :ClubCrawler.DOMUserInterface.HealthBarUI
- Source:
The health bar display
Type:
inventoryUI :ClubCrawler.DOMUserInterface.InventoryUI
- Source:
The inventory UI
Type:
leftUI :ClubCrawler.DOMUserInterface.LeftUI
- Source:
The left side UI
Type:
player :ClubCrawler.Objects.Player
- Source:
The player
Type:
player
- Source:
Properties:
Type | Description |
---|---|
ClubCrawler.Objects.Player | The player |
rightUI :ClubCrawler.DOMUserInterface.RightUI
- Source:
The right side UI
Type:
score :ClubCrawler.DOMUserInterface.ScoreUI
- Source:
The score display
Type:
weaponUI :ClubCrawler.DOMUserInterface.WeaponUI
- Source:
The weapon display UI
Type:
Methods
healthChange()
- Source:
Tells health bar to change in response to health change event
Listens to Events:
initialize(player)
- Source:
Initializes the User Inteface objects
Parameters:
Name | Type | Description |
---|---|---|
player |
ClubCrawler.Objects.Player | The player |
loadPlayerInventory()
- Source:
Loads the player inventory into the inventory UI
pointsChange()
- Source:
Tells score to change in response to score change event
Listens to Events:
refreshInventory()
- Source:
Refreshes inventory UI
Listens to Events:
showPlayerWeapon()
- Source:
Checks what weapon the player is wielding and displays that in the weapon info area
slotClick(slot)
- Source:
Called when an inventory slot is clicked.
If it's a weapon, equips that weapon and shows it in the weapon UI.
If it's a stackable it pops that item and... (implement)
Parameters:
Name | Type | Description |
---|---|---|
slot |
ClubCrawler.Objects.Inventory.InventoryItemSlot | The slot that was clicked on |
updateDebugMessages()
- Source:
Updates debug messages