#include <dialog_screen.h>


Public Member Functions | |
| dialog_screen (character_base *mynpc, char *dlg_file, u_int8 size=1) | |
| Constructor. | |
| ~dialog_screen () | |
| Destructor. | |
| void | init (character_base *mynpc, char *dlg_file, u_int8 size=1) |
| Inits the dialogue engine (similar to a constructor call). | |
| void | set_portrait (const string &new_portrait) |
| Changes the displayed NPC portrait. | |
| void | set_name (const string &new_name) |
| Changes the displayed NPC name. | |
| void | set_npc (const string &new_npc) |
| Changes the whole NPC. | |
| bool | update () |
| React to (keyboard) input. | |
| void | run () |
| Execute one step of the dialogue. | |
Definition at line 44 of file dialog_screen.h.
| dialog_screen::dialog_screen | ( | character_base * | mynpc, | |
| char * | dlg_file, | |||
| u_int8 | size = 1 | |||
| ) |
Constructor.
| mynpc | npc the player is talking with. | |
| dlg_file | dialogue file to use. | |
| size | if 1, use a large window, else a small one. |
Definition at line 39 of file dialog_screen.cc.
| dialog_screen::~dialog_screen | ( | ) |
| void dialog_screen::init | ( | character_base * | mynpc, | |
| char * | dlg_file, | |||
| u_int8 | size = 1 | |||
| ) |
Inits the dialogue engine (similar to a constructor call).
| mynpc | npc the player is talking with. | |
| dlg_file | dialogue file to use. | |
| size | if 1, use a large window, else a small one. |
Definition at line 44 of file dialog_screen.cc.
| void dialog_screen::set_portrait | ( | const string & | new_portrait | ) |
Changes the displayed NPC portrait.
| new_portrait | file name of the new portrait image to set. |
Definition at line 241 of file dialog_screen.cc.
| void dialog_screen::set_name | ( | const string & | new_name | ) |
Changes the displayed NPC name.
| char* | new name of the npc. |
Definition at line 258 of file dialog_screen.cc.
| void dialog_screen::set_npc | ( | const string & | new_npc | ) |
Changes the whole NPC.
| char* | the name of the new npc to use. |
Definition at line 265 of file dialog_screen.cc.
| bool dialog_screen::update | ( | ) | [virtual] |
React to (keyboard) input.
Reimplemented from win_base.
Definition at line 218 of file dialog_screen.cc.
| void dialog_screen::run | ( | ) |
1.5.6