#include <PlayerNode.h>
Public Member Functions | |
PlayerNode () | |
PlayerNode (IPAddress ip) | |
PlayerNode (int id, IPAddress ip, int Bandwith, int Cpu) | |
int | getId () const |
IPAddress | getIp () const |
int | getBandwith () const |
void | modifyBandwith (int diff) |
int | getCpu () const |
bool | operator< (const PlayerNode player) const |
Private Attributes | |
int | id |
IPAddress | ip |
int | Bandwith |
int | Cpu |
Friends | |
std::ostream & | operator<< (std::ostream &Stream, const PlayerNode p) |
PlayerNode::PlayerNode | ( | int | id, | |
IPAddress | ip, | |||
int | Bandwith, | |||
int | Cpu | |||
) |
int PlayerNode::getId | ( | ) | const |
IPAddress PlayerNode::getIp | ( | ) | const |
int PlayerNode::getBandwith | ( | ) | const |
void PlayerNode::modifyBandwith | ( | int | diff | ) |
int PlayerNode::getCpu | ( | ) | const |
bool PlayerNode::operator< | ( | const PlayerNode | player | ) | const |
std::ostream& operator<< | ( | std::ostream & | Stream, | |
const PlayerNode | p | |||
) | [friend] |
00055 { 00056 return Stream << "PlayerId: " << p.getId() << " Bandwith: " << p.getBandwith() << " Cpu: " << p.getCpu() << " IP: " << p.getIp()<< "\n"; 00057 }
int PlayerNode::id [private] |
IPAddress PlayerNode::ip [private] |
int PlayerNode::Bandwith [private] |
int PlayerNode::Cpu [private] |