Annwvyn::AnnControllerPov Class Reference

Represent a pad's POV controller. More...

#include <AnnEvents.hpp>

Public Member Functions

 AnnControllerPov ()
 Construct a Pov with no direction pressed. More...
 
bool getNorth () const
 Get the up (north) state. More...
 
bool getSouth () const
 Get the down (south) state. More...
 
bool getEast () const
 Get the right (east) state. More...
 
bool getWest () const
 Get the left (west) state. More...
 
bool getNorthEast () const
 Get the north && east state. More...
 
bool getSouthEast () const
 Get the south && east state. More...
 
bool getNorthWest () const
 Get the north && west state. More...
 
bool getSouthWest () const
 Get the south && west state. More...
 
bool isCentred () const
 Return true if nothing is pressed on the POV controller. More...
 

Private Member Functions

 AnnControllerPov (unsigned int binaryDirection)
 Private constructor used by the event manager. Need a direction integer from OIS. More...
 

Private Attributes

bool north
 up More...
 
bool south
 down More...
 
bool east
 right More...
 
bool west
 left More...
 

Friends

class AnnEventManager
 
class AnnControllerEvent
 

Detailed Description

Represent a pad's POV controller.

Definition at line 195 of file AnnEvents.hpp.

Constructor & Destructor Documentation

◆ AnnControllerPov() [1/2]

AnnControllerPov::AnnControllerPov ( )

Construct a Pov with no direction pressed.

Definition at line 199 of file AnnEvents.cpp.

◆ AnnControllerPov() [2/2]

AnnControllerPov::AnnControllerPov ( unsigned int  binaryDirection)
private

Private constructor used by the event manager. Need a direction integer from OIS.

Definition at line 252 of file AnnEvents.cpp.

Member Function Documentation

◆ getEast()

bool AnnControllerPov::getEast ( ) const

Get the right (east) state.

Definition at line 217 of file AnnEvents.cpp.

Here is the caller graph for this function:

◆ getNorth()

bool AnnControllerPov::getNorth ( ) const

Get the up (north) state.

Definition at line 207 of file AnnEvents.cpp.

Here is the caller graph for this function:

◆ getNorthEast()

bool AnnControllerPov::getNorthEast ( ) const

Get the north && east state.

Definition at line 227 of file AnnEvents.cpp.

Here is the caller graph for this function:

◆ getNorthWest()

bool AnnControllerPov::getNorthWest ( ) const

Get the north && west state.

Definition at line 237 of file AnnEvents.cpp.

Here is the caller graph for this function:

◆ getSouth()

bool AnnControllerPov::getSouth ( ) const

Get the down (south) state.

Definition at line 212 of file AnnEvents.cpp.

Here is the caller graph for this function:

◆ getSouthEast()

bool AnnControllerPov::getSouthEast ( ) const

Get the south && east state.

Definition at line 232 of file AnnEvents.cpp.

Here is the caller graph for this function:

◆ getSouthWest()

bool AnnControllerPov::getSouthWest ( ) const

Get the south && west state.

Definition at line 242 of file AnnEvents.cpp.

Here is the caller graph for this function:

◆ getWest()

bool AnnControllerPov::getWest ( ) const

Get the left (west) state.

Definition at line 222 of file AnnEvents.cpp.

Here is the caller graph for this function:

◆ isCentred()

bool AnnControllerPov::isCentred ( ) const

Return true if nothing is pressed on the POV controller.

Definition at line 247 of file AnnEvents.cpp.

Friends And Related Function Documentation

◆ AnnControllerEvent

friend class AnnControllerEvent
friend

Definition at line 233 of file AnnEvents.hpp.

◆ AnnEventManager

friend class AnnEventManager
friend

Definition at line 232 of file AnnEvents.hpp.

Member Data Documentation

◆ east

bool Annwvyn::AnnControllerPov::east
private

right

Definition at line 228 of file AnnEvents.hpp.

◆ north

bool Annwvyn::AnnControllerPov::north
private

up

Definition at line 224 of file AnnEvents.hpp.

◆ south

bool Annwvyn::AnnControllerPov::south
private

down

Definition at line 226 of file AnnEvents.hpp.

◆ west

bool Annwvyn::AnnControllerPov::west
private

left

Definition at line 230 of file AnnEvents.hpp.


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