CorsixTH Lua Documentation

SwingDoor Class

Declared on: line 33 of Lua/objects/doors/swing_door_right.lua.
Inheritance: SwingDoor » Door » Object » Entity

Method Index

Member Index

(*) only used in superclass methods
function SwingDoor:SwingDoor(world, object_type, x, y, direction, etc)

Parameters:

NameTypeDescription
world ? ?
object_type ? ?
x ? ?
y ? ?
direction ? ?
etc ? ?

Declared on: line 35 of Lua/objects/doors/swing_door_right.lua.

function SwingDoor:getDynamicInfo()

Depending on if this is a master or slave show the correct information.

Overrides: Entity:getDynamicInfo.
Declared on: line 80 of Lua/objects/doors/swing_door_right.lua.

function SwingDoor:onClick(ui, button)

Depending on if this is a master or slave different onClick functions are called.

Parameters:

NameTypeDescription
ui ? ?
button ? ?

Overrides: Door:onClick.
Declared on: line 62 of Lua/objects/doors/swing_door_right.lua.

function SwingDoor:setAsSlave(swing_door)

Makes the door mimic its master when it comes to hover cursor and what happens when the player clicks on it.

Parameters:

NameTypeDescription
swing_door Door The master door to mimic.

Declared on: line 53 of Lua/objects/doors/swing_door_right.lua.

function SwingDoor:swing(anim, flags)

The actual swinging is done in this class.

Parameters:

NameTypeDescription
anim integer The animation to use.
flags integer Flags, if any, associated with the animation.

Declared on: line 121 of Lua/objects/doors/swing_door_right.lua.

function SwingDoor:swingDoors(direction, length)

Makes the pair of swing doors start swinging in the correct fashion.

Parameters:

NameTypeDescription
direction string The direction in which to swing. Allowed values are "in" and "out".
length integer How long the swing animation is for the entering/leaving entity.

Declared on: line 99 of Lua/objects/doors/swing_door_right.lua.

function SwingDoor:swingSlave(direction)

Tell the associated slave door to start swinging.

Parameters:

NameTypeDescription
direction string The direction in which to swing. Allowed values are "in" and "out".

Declared on: line 85 of Lua/objects/doors/swing_door_right.lua.

function SwingDoor:updateDynamicInfo()

Depending on if this is a master or slave update the correct information.

Overrides: Door:updateDynamicInfo.
Declared on: line 71 of Lua/objects/doors/swing_door_right.lua.

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