CorsixTH Lua Documentation

ToiletRoom Class

Declared on: line 38 of Lua/rooms/toilets.lua.
Inheritance: ToiletRoom ยป Room

Method Index

Member Index

(*) only used in superclass methods
function ToiletRoom:ToiletRoom(...)

Parameters:

NameTypeDescription
... ? ?

Declared on: line 42 of Lua/rooms/toilets.lua.

function ToiletRoom:afterLoad(old, new)

Parameters:

NameTypeDescription
old ? ?
new ? ?

Overrides: Room:afterLoad.
Declared on: line 186 of Lua/rooms/toilets.lua.

function ToiletRoom:dealtWithPatient(patient)

Parameters:

NameTypeDescription
patient ? ?

Overrides: Room:dealtWithPatient.
Declared on: line 75 of Lua/rooms/toilets.lua.

function ToiletRoom:freeLoos()

if any of the occupants are not using a loo then the loo must be free

Declared on: line 60 of Lua/rooms/toilets.lua.

function ToiletRoom:getPatientCount()

Override the standard way to count the number of patients to take into account that some of them may not be using the loo, allowing others to enter the room earlier than normal; but not if there is only one loo in the room, then it becomes a private toilet with only one person at a time.

Overrides: Room:getPatientCount.
Declared on: line 166 of Lua/rooms/toilets.lua.

function ToiletRoom:onHumanoidEnter(humanoid)

Parameters:

NameTypeDescription
humanoid ? ?

Overrides: Room:onHumanoidEnter.
Declared on: line 85 of Lua/rooms/toilets.lua.

Page generated on Sat Feb 07, 2015 at 18:38:28 by LDocGen.