ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <cursor.h>

Inheritance diagram for Myst3::Cursor:
Collaboration diagram for Myst3::Cursor:

List of all members.

Public Member Functions

 Cursor (Myst3Engine *vm)
virtual ~Cursor ()
void changeCursor (uint32 index)
bool isPositionLocked ()
void lockPosition (bool lock)
Common::Point getPosition (bool scaled=true)
 Get the mouse cursor position.
void updatePosition (const Common::Point &mouse)
void getDirection (float &pitch, float &heading)
void draw () override
void setVisible (bool show)
bool isVisible ()

Private Types

typedef Common::HashMap
< uint32, Texture * > 
TextureMap

Private Member Functions

void loadAvailableCursors ()
float getTransparencyForId (uint32 cursorId)

Private Attributes

Myst3Engine_vm
uint32 _currentCursorID
int32 _hideLevel
Common::Point _position
 Position of the cursor.
TextureMap _textures
bool _lockedAtCenter

Detailed Description

Definition at line 36 of file engines/myst3/cursor.h.


Member Typedef Documentation

Definition at line 70 of file engines/myst3/cursor.h.


Constructor & Destructor Documentation

Myst3::Cursor::Cursor ( Myst3Engine vm  ) 

Definition at line 60 of file myst3/cursor.cpp.

Myst3::Cursor::~Cursor (  )  [virtual]

Definition at line 126 of file myst3/cursor.cpp.


Member Function Documentation

void Myst3::Cursor::changeCursor ( uint32  index  ) 

Definition at line 133 of file myst3/cursor.cpp.

void Myst3::Cursor::draw (  )  [override, virtual]

Reimplemented from Myst3::Drawable.

Definition at line 200 of file myst3/cursor.cpp.

void Myst3::Cursor::getDirection ( float &  pitch,
float &  heading 
)

Definition at line 247 of file myst3/cursor.cpp.

Common::Point Myst3::Cursor::getPosition ( bool  scaled = true  ) 

Get the mouse cursor position.

By default it is in 640x480 equivalent coordinates

Parameters:
scaled When false the position is in actual game screen coordinates.
Returns:

Definition at line 181 of file myst3/cursor.cpp.

float Myst3::Cursor::getTransparencyForId ( uint32  cursorId  )  [private]

Definition at line 146 of file myst3/cursor.cpp.

bool Myst3::Cursor::isPositionLocked (  )  [inline]

Definition at line 42 of file engines/myst3/cursor.h.

bool Myst3::Cursor::isVisible (  ) 

Definition at line 243 of file myst3/cursor.cpp.

void Myst3::Cursor::loadAvailableCursors (  )  [private]

Definition at line 77 of file myst3/cursor.cpp.

void Myst3::Cursor::lockPosition ( bool  lock  ) 

Definition at line 155 of file myst3/cursor.cpp.

void Myst3::Cursor::setVisible ( bool  show  ) 

Definition at line 236 of file myst3/cursor.cpp.

void Myst3::Cursor::updatePosition ( const Common::Point mouse  ) 

Definition at line 173 of file myst3/cursor.cpp.


Member Data Documentation

Definition at line 64 of file engines/myst3/cursor.h.

Definition at line 65 of file engines/myst3/cursor.h.

Definition at line 73 of file engines/myst3/cursor.h.

Position of the cursor.

Definition at line 68 of file engines/myst3/cursor.h.

Definition at line 71 of file engines/myst3/cursor.h.

Definition at line 62 of file engines/myst3/cursor.h.


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


Generated on Sat Mar 16 2019 05:06:38 for ResidualVM by doxygen 1.7.1
curved edge   curved edge