Pokemon Unity
A pokemon clone made using Unity
Loading...
Searching...
No Matches
BattleDialogBox Class Reference

The BattleDialogBox manages the dialog boxes in the battle scene More...

Inheritance diagram for BattleDialogBox:
[legend]
Collaboration diagram for BattleDialogBox:
[legend]

Public Member Functions

void SetDialog (string dialog)
 Set the dialog box text More...
 
IEnumerator TypeDialog (string dialog)
 Smoothly animate the dialog on the dialog box More...
 
void SetDialogTextActive (bool enabled)
 Show/hide the dialog text More...
 
void SetActionSelectorActive (bool enabled)
 Show/hide the action selector More...
 
void SetMoveSelectorActive (bool enabled)
 Show/hide the move selector and details More...
 
void SetChoiceBoxActive (bool enabled)
 Show/hide the choice box More...
 
void SetMoveNames (List< Move > moves)
 Update the move selection UI with the move names More...
 
void UpdateActionSelection (int selectedAction)
 Update the action selection UI with the selected action More...
 
void UpdateMoveSelection (int selectedMove, Move move)
 Update the move selection UI with the selected move More...
 
void UpdateChoiceBox (bool yesSelected)
 Update the choice box More...
 

Detailed Description

The BattleDialogBox manages the dialog boxes in the battle scene

Definition at line 9 of file BattleDialogBox.cs.

Member Function Documentation

◆ SetActionSelectorActive()

void BattleDialogBox.SetActionSelectorActive ( bool  enabled)

Show/hide the action selector

Parameters
enabledWhether to show or hide the action selector

Definition at line 82 of file BattleDialogBox.cs.

◆ SetChoiceBoxActive()

void BattleDialogBox.SetChoiceBoxActive ( bool  enabled)

Show/hide the choice box

Parameters
enabledWhether to show or hide the choice box

Definition at line 101 of file BattleDialogBox.cs.

◆ SetDialog()

void BattleDialogBox.SetDialog ( string  dialog)

Set the dialog box text

Parameters
dialogThe text to set

Definition at line 43 of file BattleDialogBox.cs.

◆ SetDialogTextActive()

void BattleDialogBox.SetDialogTextActive ( bool  enabled)

Show/hide the dialog text

Parameters
enabledWhether to show or hide the dialog text

Definition at line 73 of file BattleDialogBox.cs.

◆ SetMoveNames()

void BattleDialogBox.SetMoveNames ( List< Move moves)

Update the move selection UI with the move names

Parameters
movesThe list of moves to set on the UI

Definition at line 110 of file BattleDialogBox.cs.

◆ SetMoveSelectorActive()

void BattleDialogBox.SetMoveSelectorActive ( bool  enabled)

Show/hide the move selector and details

Parameters
enabledWhether to show or hide the move selector amd details

Definition at line 91 of file BattleDialogBox.cs.

◆ TypeDialog()

IEnumerator BattleDialogBox.TypeDialog ( string  dialog)

Smoothly animate the dialog on the dialog box

Parameters
dialogThe text to animate

Definition at line 52 of file BattleDialogBox.cs.

◆ UpdateActionSelection()

void BattleDialogBox.UpdateActionSelection ( int  selectedAction)

Update the action selection UI with the selected action

Parameters
selectedActionThe selected action

Definition at line 129 of file BattleDialogBox.cs.

◆ UpdateChoiceBox()

void BattleDialogBox.UpdateChoiceBox ( bool  yesSelected)

Update the choice box

Parameters
selectedChoiceWhether or not the "yes" options is selected

Definition at line 170 of file BattleDialogBox.cs.

◆ UpdateMoveSelection()

void BattleDialogBox.UpdateMoveSelection ( int  selectedMove,
Move  move 
)

Update the move selection UI with the selected move

Parameters
selectedMoveThe index of the selected move
moveThe selected move

Definition at line 145 of file BattleDialogBox.cs.


The documentation for this class was generated from the following file: