Pac-Man
Public Member Functions | Friends | List of all members
CMap::CMapCoordinates Class Reference

Class that represents coordinates in a (CMap) map. More...

#include <CMap.h>

Collaboration diagram for CMap::CMapCoordinates:
Collaboration graph

Public Member Functions

SCoordinates tryMove (const SCoordinates &moveVector) const
 Returns coordinates if CMapCoordinates would be moved by moveVector. More...
 
void moveX (float howMuch)
 move coordinates in X direction More...
 
void moveY (float howMuch)
 move coordinates in Y direction More...
 
float x () const
 returns x coordinate More...
 
float y () const
 returns y coordinate More...
 
SCoordinates get () const
 return's coordinates More...
 

Friends

class CMap
 only CMap can construct CMapCoordinates
 

Detailed Description

Class that represents coordinates in a (CMap) map.

Its modulating wrapper around SCoordinates

Member Function Documentation

◆ get()

SCoordinates CMap::CMapCoordinates::get ( ) const
inline

return's coordinates

Returns
the inner coordinates

◆ moveX()

void CMap::CMapCoordinates::moveX ( float  howMuch)
inline

move coordinates in X direction

Parameters
howMuchhow much will be coordinates moved in x direction

◆ moveY()

void CMap::CMapCoordinates::moveY ( float  howMuch)
inline

move coordinates in Y direction

Parameters
howMuchhow much will be coordinates moved in y direction

◆ tryMove()

SCoordinates CMap::CMapCoordinates::tryMove ( const SCoordinates moveVector) const
inline

Returns coordinates if CMapCoordinates would be moved by moveVector.

Parameters
[in]moveVectorvector which determines the move
Returns
new possible coordinates are returned

◆ x()

float CMap::CMapCoordinates::x ( ) const
inline

returns x coordinate

Returns
the x coordinate of the coordinates

◆ y()

float CMap::CMapCoordinates::y ( ) const
inline

returns y coordinate

Returns
the y coordinate of the coordinates

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