45 _module(&module), _lastCompassChange(0) {
107 (*p)->addEvent(event);
117 if (
_dialog->processEventQueue() != 0)
124 (*p)->processEventQueue();
132 _party[partyMember]->setPortrait(portrait);
136 _party[partyMember]->setHealth(current, max);
140 _party[partyMember]->setName(name);
149 _party[partyMember]->setHealthColor(1.0f, 0.0f, 0.0f, 1.0f);
153 _party[partyMember]->setHealthColor(189.0f / 255.0f, 146.0f / 255.0f, 74.0f / 255.0f, 1.0f);
157 _party[partyMember]->setHealthColor(132.0f / 255.0f, 182.0f / 255.0f, 74.0f / 255.0f, 1.0f);
161 assert(partyMember <
_party.size());
The NWN ingame main menu.
void setPoisoned(size_t partyMember)
Set party member to "poisoned" (green health bar).
void setPortrait(size_t partyMember, const Common::UString &portrait)
Set the party member's portrait.
A class holding an UTF-8 string.
const Common::UString & getName() const
Return the object's name.
void addEvent(const Events::Event &event)
const Version & getGameVersion() const
The NWN ingame GUI elements.
The NWN ingame quickchat.
void setArea(const Common::UString &area)
Set the current area.
Common::ScopedPtr< Compass > _compass
The compass.
std::vector< uint32 > _lastPartyMemberChange
The time that party member was changed last.
A vector of pointer to objects, with automatic deletion.
void exceptionDispatcherWarning(const char *s,...)
Exception dispatcher that prints the exception as a warning, and adds another reason on top...
The context needed to run a Neverwinter Nights module.
Basic exceptions to throw.
const char * c_str() const
Return the (utf8 encoded) string data.
Common::ScopedPtr< Quickchat > _quickchat
The quick chat.
Common::ScopedPtr< Quickbar > _quickbar
The quick bar.
IngameGUI(Module &module, ::Engines::Console *console=0)
The NWN ingame party leader panel.
bool empty() const
Is the string empty?
int32 getMaxHP() const
Return the max HP this creature can have.
Common::ScopedPtr< IngameMainMenu > _main
The ingame main menu.
uint32 showMain()
Show the ingame main menu.
The NWN ingame party leader bar.
The NWN ingame dialog panel.
void stopConversation()
Stop a conversation.
void updatePartyMember(size_t partyMember, const Creature &creature, bool force=false)
Update the party member.
void abortMain()
Abort the ingame main menu.
void setSick(size_t partyMember)
Set party member to "sick" (brown health bar).
int32 getCurrentHP() const
Return the current HP this creature has.
void setHealth(size_t partyMember, uint32 current, uint32 max)
Set the party member's health.
A creature in a Neverwinter Nights area.
const Common::UString & getPortrait() const
Get the creature's portrait.
void setName(size_t partyMember, const Common::UString &name)
Set the party member's name.
The NWN ingame quickchat.
uint32 lastChangedGUIDisplay() const
Last time info was changed that's displayed in the GUI.
Common::PtrVector< CharacterInfo > _party
The party member character panels.
bool hasRunningConversation() const
Do we have a currently running conversation?
void setHealthy(size_t partyMember)
Set party member to "healthy" (red health bar).
void hide()
Hide the ingame GUI elements.
The NWN ingame main menu.
bool startConversation(const Common::UString &conv, Creature &pc, Object &obj, bool playHello=true)
Start a conversation.
Common::ScopedPtr< Dialog > _dialog
The current dialog.
void show()
Show the ingame GUI elements.