MDA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups
Public Member Functions | Public Attributes | Friends | List of all members
MDAT::Match_point Struct Reference

Simple struct to save a match and its score. More...

#include <Library.hpp>

Public Member Functions

 Match_point ()
 Constructor which sets every value to 0.
 
 Match_point (unsigned int x_, unsigned int y_, float score_)
 Constructor initializing values to user given values. More...
 

Public Attributes

unsigned int x
 
unsigned int y
 
float score
 

Friends

bool operator< (const Match_point &a, const Match_point &b)
 Lesser operator. More...
 

Detailed Description

Simple struct to save a match and its score.

Constructor & Destructor Documentation

MDAT::Match_point::Match_point ( unsigned int  x_,
unsigned int  y_,
float  score_ 
)
inline

Constructor initializing values to user given values.

Parameters
x_The first position.
y_The second position.
score_The score of the match.

Friends And Related Function Documentation

bool operator< ( const Match_point a,
const Match_point b 
)
friend

Lesser operator.

First the first coordinate is compared then the second.

Parameters
aThe first point.
bThe second point.