Peekerpoke  0.1 beta
point Struct Reference

#include <Map.h>

Public Member Functions

 point ()
 Default constructor of point. More...
 
 point (int _x, int _y, int _step=0)
 Constructor of point with parameters. More...
 
bool operator== (const point &other)
 overwritten function operator== More...
 
bool operator!= (const point &other)
 overwritten function operator!= More...
 
string toString ()
 convert point to string in a specfic format More...
 

Public Attributes

int x
 
int y
 
int step
 

Constructor & Destructor Documentation

point::point ( )

Default constructor of point.

point::point ( int  _x,
int  _y,
int  _step = 0 
)

Constructor of point with parameters.

Parameters
_xto set x
_yto set y
_stepto set step

Member Function Documentation

bool point::operator!= ( const point other)

overwritten function operator!=

Parameters
othera point which to be compared
Returns
true - unequals
false - equals
bool point::operator== ( const point other)

overwritten function operator==

Parameters
othera point which to be compared
Returns
true - equals
false - unequals
string point::toString ( )

convert point to string in a specfic format

Returns
the string of result

Member Data Documentation

int point::step
int point::x
int point::y

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