diff options
author | Machiavelli <none@none> | 2009-04-14 17:48:58 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-04-14 17:48:58 +0200 |
commit | ecbaf6483d453e0d80ab0b24f27232fbda1a3c4c (patch) | |
tree | ba5ec002452215e375dcb6f367adf98c57f0b46b /src/game/TicketMgr.h | |
parent | e7ac066211a25d90039695badb0d9724fa610256 (diff) |
* Ticket system update;
- Add map, x, y, z coordinate data to ticket upon creation
- Add command .go ticket to teleport to the coordinates where the ticket was created
- Move InitTicketID() to the class constructor instead of at every LoadGMTickets call
- Minor code cleanup
--HG--
branch : trunk
Diffstat (limited to 'src/game/TicketMgr.h')
-rw-r--r-- | src/game/TicketMgr.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/TicketMgr.h b/src/game/TicketMgr.h index d86ecc106b0..491e6657f40 100644 --- a/src/game/TicketMgr.h +++ b/src/game/TicketMgr.h @@ -32,6 +32,10 @@ struct GM_Ticket uint64 guid; uint64 playerGuid; std::string name; + float pos_x; + float pos_y; + float pos_z; + uint32 map; std::string message; uint64 createtime; uint64 timestamp; @@ -46,7 +50,7 @@ typedef std::list<GM_Ticket*> GmTicketList class TicketMgr { public: - TicketMgr(){m_ticketid = 1;} //constructor + TicketMgr(){ InitTicketID();} //constructor ~TicketMgr(){} //destructor // Object Holder |