Public Member Functions | Public Attributes

CHotel Class Reference

List of all members.

Public Member Functions

 CHotel (Critter& npc, array< uint >& locks, uint price, uint rentTime)
void Set (Critter& npc, array< uint >& locks, uint price, uint rentTime)
 Assigns new properties to hotel.
uint GetId ()
void SaveData ()
 Stores info about players that are assigned to locks.
void InitRooms (Map@ map)
CRoomGetFreeRoom ()
void Print ()

Public Attributes

uint ownerId
array< CRoom@> rooms
array< uint > locks
uint Price
uint RentTime

Constructor & Destructor Documentation

CHotel ( Critter npc,
array< uint >&  locks,
uint  price,
uint  rentTime 
)

Member Function Documentation

void Set ( Critter npc,
array< uint >&  locks,
uint  price,
uint  rentTime 
)

Assigns new properties to hotel.

uint GetId (  ) 
void SaveData (  ) 

Stores info about players that are assigned to locks.

void InitRooms ( Map map  ) 
CRoom@ GetFreeRoom (  ) 
void Print (  ) 

Member Data Documentation

uint ownerId
array<CRoom@> rooms
array<uint> locks
uint Price
uint RentTime