]>
jfr.im git - irc/gameservirc.git/blob - gameserv/toplist.h
10 // Forward declaration
20 PlayerWrapper(Player
*pl
);
23 void setPlayer(Player
*pl
);
25 string
getName() { return p
->getName(); };
26 int getLevel() { return p
->getLevel(); };
27 long int getExp() { return p
->getExp(); };
28 long int getGold() { return p
->getGold(); };
29 long int getBank() { return p
->getBank(); };
30 int getHP() { return p
->getHP(); };
31 int getMaxHP() { return p
->getMaxHP(); };
32 int getStrength() { return p
->getStrength(); };
33 int getDefense() { return p
->getDefense(); };
34 int getForestFights() { return p
->getForestFights(); };
35 int getPlayerFights() { return p
->getPlayerFights(); };
36 string
getPassword() { return p
->getPassword(); };
38 aClient
*getClient() { return p
->getClient(); };
39 Monster
*getMonster() { return p
->getMonster(); };
40 Monster
*getMaster() { return p
->getMaster(); };
41 aClient
*getBattle() { return p
->getBattle(); };
43 bool operator < (PlayerWrapper
&right
);
52 // Default Constructor
55 // Constructor with a parameter for the count
61 // Insert the player into the top list if they make it
62 void insertPlayer(Player
*);
64 // Set how many players should be in the toplist
66 int getCount() { return count
; };
71 // Prune the list so it's not larger than the count
76 list
<PlayerWrapper
>::iterator
begin();
77 list
<PlayerWrapper
>::iterator
end();
82 // The actual list of players
83 list
<PlayerWrapper
> myList
;
85 // The number of players to keep in the list