Public Member Functions | Public Attributes

CRoom Class Reference

Room info. More...


Detailed Description

Room info.

List of all members.

Public Member Functions

 CRoom (Critter@ ownerNpc, uint playerId, CHotel@ hotel, int roomnumber)
bool IsFree ()
uint GetLockId ()
int GetRoomNumber ()
uint GetHotelId ()
 Retrieves id of the hotel room belongs too.
uint GetPlayerId ()
 Returns id of the player that rents a room.
bool IsOwner (uint Id)
void AddLock (Item@ item)
ItemGetDoor ()
ItemGetContainer ()
void Rent (Critter& npc, Critter& player, uint price, uint days)
void Expire (bool forced)

Public Attributes

uint ownerNpcId
uint playerId
int roomnumber
CHotelhotel
array< uint > locks

Constructor & Destructor Documentation

CRoom ( Critter ownerNpc,
uint  playerId,
CHotel hotel,
int  roomnumber 
)

Member Function Documentation

bool IsFree (  ) 
uint GetLockId (  ) 
int GetRoomNumber (  ) 
uint GetHotelId (  ) 

Retrieves id of the hotel room belongs too.

uint GetPlayerId (  ) 

Returns id of the player that rents a room.

bool IsOwner ( uint  Id  ) 
void AddLock ( Item item  ) 
Item@ GetDoor (  ) 
Item@ GetContainer (  ) 
void Rent ( Critter npc,
Critter player,
uint  price,
uint  days 
)
void Expire ( bool  forced  ) 

Member Data Documentation

uint ownerNpcId
uint playerId
array<uint> locks