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 cursor.h.


Member Typedef Documentation

Definition at line 70 of file cursor.h.


Constructor & Destructor Documentation

Myst3::Cursor::Cursor ( Myst3Engine vm  ) 

Definition at line 60 of file cursor.cpp.

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

Definition at line 126 of file cursor.cpp.


Member Function Documentation

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

Definition at line 133 of file cursor.cpp.

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

Reimplemented from Myst3::Drawable.

Definition at line 200 of file cursor.cpp.

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

Definition at line 247 of file 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 cursor.cpp.

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

Definition at line 146 of file cursor.cpp.

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

Definition at line 42 of file cursor.h.

bool Myst3::Cursor::isVisible (  ) 

Definition at line 243 of file cursor.cpp.

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

Definition at line 77 of file cursor.cpp.

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

Definition at line 155 of file cursor.cpp.

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

Definition at line 236 of file cursor.cpp.

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

Definition at line 173 of file cursor.cpp.


Member Data Documentation

Definition at line 64 of file cursor.h.

Definition at line 65 of file cursor.h.

Definition at line 73 of file cursor.h.

Position of the cursor.

Definition at line 68 of file cursor.h.

Definition at line 71 of file cursor.h.

Definition at line 62 of file cursor.h.


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


Generated on Sat Jun 22 2019 05:04:08 for ResidualVM by doxygen 1.7.1
curved edge   curved edge