ScummVM API documentation
MADS::ScreenObjects Class Reference
Inheritance diagram for MADS::ScreenObjects:
Common::Array< ScreenObject >

Public Member Functions

 ScreenObjects (MADSEngine *vm)
 
ScreenObjectadd (const Common::Rect &bounds, ScreenMode mode, ScrCategory category, int descId)
 
void check (bool scanFlag)
 
int scan (const Common::Point &pt, int layer)
 
void elementHighlighted ()
 
ScreenObjectoperator[] (int idx)
 
void setActive (ScrCategory category, int descId, bool active)
 
void synchronize (Common::Serializer &s)
 
- Public Member Functions inherited from Common::Array< ScreenObject >
 Array (size_type count)
 
 Array (size_type count, const ScreenObject &value)
 
 Array (const Array< ScreenObject > &array)
 
 Array (Array< ScreenObject > &&old)
 
 Array (std::initializer_list< ScreenObject > list)
 
 Array (const T2 *array, size_type n)
 
void emplace (const_iterator pos, TArgs &&... args)
 
void emplace_back (TArgs &&...args)
 
void push_back (const ScreenObject &element)
 
void push_back (ScreenObject &&element)
 
void push_back (const Array< ScreenObject > &array)
 
void pop_back ()
 
const ScreenObject * data () const
 
ScreenObject * data ()
 
ScreenObject & front ()
 
const ScreenObject & front () const
 
ScreenObject & back ()
 
const ScreenObject & back () const
 
void insert_at (size_type idx, const ScreenObject &element)
 
void insert_at (size_type idx, const Array< ScreenObject > &array)
 
void insert (iterator pos, const ScreenObject &element)
 
ScreenObject remove_at (size_type idx)
 
ScreenObject & operator[] (size_type idx)
 
const ScreenObject & operator[] (size_type idx) const
 
Array< ScreenObject > & operator= (const Array< ScreenObject > &array)
 
Arrayoperator= (Array< ScreenObject > &&old)
 
size_type size () const
 
void clear ()
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
bool empty () const
 
bool operator== (const Array< ScreenObject > &other) const
 
bool operator!= (const Array< ScreenObject > &other) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void reserve (size_type newCapacity)
 
void resize (size_type newSize)
 
void resize (size_type newSize, const ScreenObject value)
 
void assign (const_iterator first, const_iterator last)
 
void swap (Array &arr)
 

Public Attributes

InputMode _inputMode
 
int _v7FED6
 
int _v8332A
 
int _forceRescan
 
int _selectedObject
 
ScrCategory _category
 
bool _released
 
int _uiCount
 
bool _eventFlag
 
uint32 _baseTime
 
int _spotId
 

Additional Inherited Members

- Public Types inherited from Common::Array< ScreenObject >
typedef ScreenObject * iterator
 
typedef const ScreenObject * const_iterator
 
typedef ScreenObject value_type
 
typedef uint size_type
 
- Protected Member Functions inherited from Common::Array< ScreenObject >
void allocCapacity (size_type capacity)
 
void freeStorage (ScreenObject *storage, const size_type elements)
 
iterator insert_aux (iterator pos, const_iterator first, const_iterator last)
 
- Static Protected Member Functions inherited from Common::Array< ScreenObject >
static size_type roundUpCapacity (size_type capacity)
 
- Protected Attributes inherited from Common::Array< ScreenObject >
size_type _capacity
 
size_type _size
 
ScreenObject * _storage
 

Member Function Documentation

◆ add()

ScreenObject* MADS::ScreenObjects::add ( const Common::Rect bounds,
ScreenMode  mode,
ScrCategory  category,
int  descId 
)

Add a new item to the list

◆ check()

void MADS::ScreenObjects::check ( bool  scanFlag)

Check objects on the screen

◆ scan()

int MADS::ScreenObjects::scan ( const Common::Point pt,
int  layer 
)

Scan the registered screen objects

◆ elementHighlighted()

void MADS::ScreenObjects::elementHighlighted ( )

Handle an element being highlighted on the screen, and make it active.

◆ operator[]()

ScreenObject& MADS::ScreenObjects::operator[] ( int  idx)
inline

Retrieve a ScreenObject from the list

Remarks
This array is 1-based indexed by the game

◆ setActive()

void MADS::ScreenObjects::setActive ( ScrCategory  category,
int  descId,
bool  active 
)

Sets an item identified by category and Desc Id as active or not

Parameters
categoryScreen category
descIdDescription for item
activeWhether to set item as active or not

◆ synchronize()

void MADS::ScreenObjects::synchronize ( Common::Serializer s)

Synchronize the data


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