Room info.
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) |
| Item@ | GetDoor () |
| Item@ | GetContainer () |
| void | Rent (Critter& npc, Critter& player, uint price, uint days) |
| void | Expire (bool forced) |
Public Attributes | |
| uint | ownerNpcId |
| uint | playerId |
| int | roomnumber |
| CHotel@ | hotel |
| array< uint > | locks |
| 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 Expire | ( | bool | forced | ) |
| uint ownerNpcId |
| uint playerId |
| int roomnumber |
| array<uint> locks |
1.7.1