#include <conversation.h>
Public Types | |
enum | State { INTRO, TALK, ASK, ASKYESNO, VENDORQUESTION, BUY_ITEM, SELL_ITEM, BUY_QUANTITY, SELL_QUANTITY, BUY_PRICE, CONFIRMATION, CONTINUEQUESTION, TOPIC, PLAYER, FULLHEAL, ADVANCELEVELS, GIVEBEGGAR, ATTACK, DONE } |
enum | InputType { INPUT_STRING, INPUT_CHARACTER, INPUT_NONE } |
Public Member Functions | |
InputType | getInputRequired (int *bufferLen) |
Public Attributes | |
State | _state |
Common::String | _playerInput |
Common::List< Common::String > | _reply |
class Script * | _script |
Dialogue::Question * | _question |
int | _quant |
int | _player |
int | _price |
Static Public Attributes | |
static const uint | BUFFERLEN |
The conversation class, which handles the flow of text from the player to the talker and vice-versa. It is responsible for beginning and termination conversations and handing state changes during.
Different states the conversation may be in
Different types of conversation input required
|
static |
The default maxixum length of input
State Ultima::Ultima4::Conversation::_state |
The state of the conversation
Common::String Ultima::Ultima4::Conversation::_playerInput |
A Common::String holding the text the player inputs
Common::List<Common::String> Ultima::Ultima4::Conversation::_reply |
What the talker says
class Script* Ultima::Ultima4::Conversation::_script |
A script that this person follows during the conversation (may be nullptr)
Dialogue::Question* Ultima::Ultima4::Conversation::_question |
The current question the player is being asked
int Ultima::Ultima4::Conversation::_quant |
For vendor transactions
int Ultima::Ultima4::Conversation::_player |
For vendor transactions
int Ultima::Ultima4::Conversation::_price |
For vendor transactions