ScummVM API documentation
Ultima::Nuvie::Events Class Reference
Inheritance diagram for Ultima::Nuvie::Events:
Ultima::Shared::EventsManager Ultima::Nuvie::CallBack

Public Member Functions

 Events (Shared::EventsCallback *callback, const Configuration *cfg)
 
void clear ()
 
bool init (ObjManager *om, MapWindow *mw, MsgScroll *ms, Player *p, Magic *mg, GameClock *gc, ViewManager *vm, UseCode *uc, GUI *g, KeyBinder *kb)
 
GUI_Dialogget_gamemenu_dialog ()
 
TimeQueueget_time_queue ()
 
TimeQueueget_game_time_queue ()
 
EventMode get_mode () const
 
EventMode get_last_mode () const
 
void set_mode (EventMode new_mode)
 
bool is_direction_selecting_targets () const
 
void set_direction_selects_target (bool val)
 
void update_timers ()
 
bool update ()
 
bool handleEvent (const Common::Event *event)
 
void request_input (CallBack *caller, void *user_data=nullptr)
 
void target_spell ()
 
void close_spellbook ()
 
void get_scroll_input (const char *allowed=nullptr, bool can_escape=true, bool using_target_cursor=false, bool set_numbers_only_to_true=true)
 
void get_inventory_obj (Actor *actor, bool getting_target=true)
 
void get_spell_num (Actor *caster, Obj *spell_container)
 
void get_direction (const char *prompt)
 
void get_direction (const MapCoord &from, const char *prompt)
 
void get_target (const char *prompt)
 
void get_target (const MapCoord &init, const char *prompt)
 
void display_portrait (Actor *actor, const char *name=nullptr)
 
bool newAction (EventMode new_mode)
 
void doAction ()
 
void cancelAction ()
 
void endAction (bool prompt=false)
 
bool select_obj (Obj *obj, Actor *actor=nullptr)
 
bool select_view_obj (Obj *obj, Actor *actor)
 
bool select_actor (Actor *actor)
 
bool select_direction (sint16 rel_x, sint16 rel_y)
 
bool select_target (uint16 x, uint16 y, uint8 z=0)
 
bool select_party_member (uint8 num)
 
bool select_spell_num (sint16 spell_num)
 
void key_redirect (CallBack *caller, void *user_data)
 
void cancel_key_redirect ()
 
bool move (sint16 rel_x, sint16 rel_y)
 
bool use_start ()
 
bool use (sint16 rel_x, sint16 rel_y)
 
bool use (const MapCoord &coord)
 
bool use (Obj *obj)
 
bool use (Actor *actor, uint16 x, uint16 y)
 
bool get_start ()
 
bool get (const MapCoord &coord)
 
bool get (sint16 rel_x, sint16 rel_y)
 
bool perform_get (Obj *obj, Obj *container_obj=nullptr, Actor *actor=nullptr)
 
bool look_start ()
 
bool lookAtCursor (bool delayed=false, uint16 x=0, uint16 y=0, uint8 z=0, Obj *obj=nullptr, Actor *actor=nullptr)
 
bool look (Obj *obj)
 
bool look (Actor *actor)
 
bool search (Obj *obj)
 
bool talk_start ()
 
bool talk_cursor ()
 
bool talk (Actor *actor)
 
bool talk (Obj *obj)
 
bool perform_talk (Actor *actor)
 
bool attack ()
 
bool push_start ()
 
bool pushFrom (Obj *obj)
 
bool pushFrom (sint16 rel_x, sint16 rel_y)
 
bool pushFrom (const MapCoord &target)
 
bool pushTo (Obj *obj, Actor *actor)
 
bool pushTo (sint16 rel_x, sint16 rel_y, bool push_from=false)
 
void solo_mode (uint32 actor_num)
 
bool party_mode ()
 
bool toggle_combat ()
 
bool ready (Obj *obj, Actor *actor=nullptr)
 
bool unready (Obj *obj)
 
bool drop_start ()
 
bool drop_select (Obj *obj, uint16 qty=0)
 
bool drop_count (uint16 qty)
 
bool perform_drop ()
 
void set_drop_from_key (bool closing_gumps)
 
bool drop (Obj *obj, uint16 qty, uint16 x, uint16 y)
 
bool drop (uint16 x, uint16 y)
 
void set_drop_target (uint16 x, uint16 y)
 
bool can_move_obj_between_actors (Obj *obj, Actor *src_actor, Actor *target_actor, bool display_name=false)
 
void display_not_aboard_vehicle (bool show_prompt=true)
 
void display_move_text (Actor *target_actor, Obj *obj)
 
bool can_get_to_actor (const Actor *actor, uint16 x, uint16 y)
 
bool using_control_cheat () const
 
void set_control_cheat (bool control_cheat)
 
bool is_looking_at_spellbook () const
 
void set_looking_at_spellbook (bool looking)
 
bool rest ()
 
bool rest_input (uint16 input)
 
void cast_spell_directly (uint8 spell_num)
 
bool can_target_icon ()
 
void walk_to_mouse_cursor (uint32 mx, uint32 my)
 
void multiuse (uint16 wx, uint16 wy)
 
void alt_code (int c)
 
void alt_code_input (const char *in)
 
void clear_alt_code ()
 
void toggleAltCodeMode (bool enable)
 
void appendAltCode (int code)
 
bool alt_code_teleport (const char *location_string)
 
void alt_code_infostring ()
 
void alt_code_teleport_menu (uint32 selection)
 
bool alt_code_teleport_to_person (uint32 npc)
 
void wait ()
 
void set_ignore_timeleft (bool newsetting)
 
EventInputget_input ()
 
void moveCursorToMapWindow (bool ToggleCursor=false)
 
void moveCursorToInventory ()
 
void toggleFpsDisplay ()
 
void close_gumps ()
 
bool dont_show_target_cursor () const
 
bool input_really_needs_directon () const
 
void quitDialog ()
 
void gameMenuDialog ()
 
void assetViewer ()
 
bool actor_exists (const Actor *a) const
 
- Public Member Functions inherited from Ultima::Shared::EventsManager
 EventsManager (EventsCallback *callback)
 
void addTarget (EventTarget *target)
 
void removeTarget ()
 
virtual bool pollEvent (Common::Event &event)
 
void pollEvents ()
 
void pollEventsAndWait ()
 
uint32 getFrameCounter () const
 
uint32 getTicksCount () const
 
void sleep (uint time)
 
bool waitForPress (uint expiry)
 
void setMousePos (const Point &pt)
 
bool isSpecialPressed (SpecialButtons btn) const
 
uint getSpecialButtons () const
 
virtual void setCursor (int cursorId)
 
void showCursor ()
 
void hideCursor ()
 
bool isCursorVisible ()
 
uint32 getTicks ()
 
uint32 playTime () const
 
void setPlayTime (uint32 time)
 
bool isButtonDown (MouseButton button) const
 
bool isButtonDown () const
 
byte getButtonState () const
 
Common::Point getMousePos () const
 
- Public Member Functions inherited from Ultima::Nuvie::CallBack
uint16 message (uint16 msg, void *msg_data=nullptr, void *my_data=nullptr)
 
void set_user_data (void *user_data)
 
void set_target (CallBack *t)
 

Static Public Member Functions

static Eventsget ()
 

Public Attributes

bool using_pickpocket_cheat
 
bool cursor_mode
 
bool do_not_show_target_cursor
 

Protected Member Functions

uint32 TimeLeft ()
 
uint16 callback (uint16 msg, CallBack *caller, void *data=nullptr) override
 
bool handleSDL_KEYDOWN (const Common::Event *event)
 
const char * print_mode (EventMode mode)
 
void try_next_attack ()
 
- Protected Member Functions inherited from Ultima::Shared::EventsManager
virtual void nextFrame ()
 

Additional Inherited Members

- Protected Attributes inherited from Ultima::Nuvie::CallBack
char * callback_user_data
 
CallBackcallback_target
 

Member Function Documentation

◆ get()

static Events* Ultima::Nuvie::Events::get ( )
inlinestatic

Gets a reference to the events manager


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