ig.

Door

new Door()

Entity that acts as an automatic door, opening and closing as an entity passes through. IMPORTANT: this is an abstract entity that should be extended.

Author:
  • Collin Hover - collinhover.com
Source:

autoLock :Boolean

Whether to automatically lock after close.

Default Value:
  • false
Source:

collides

Default Value:
  • fixed
Source:

collidesChanges

Default Value:
  • true
Source:

frozen

Source:

locked :Boolean

Doors can be locked. Will play directional "locked" animation.

Default Value:
  • false
Source:

close()

Closes door and resets ig.Door#collides to ig.EntityExtended.COLLIDES.FIXED.

Source:

getCanOpen()

Checks whether door can open and adds check for if door is ig.EntityExtended#oneWay.

Source:

getIsCollidingWithOneWay()

Doors always collide with one way entities.

Source:

initTypes()

Inits door types.
- adds ig.EntityExtended.TYPE.DOOR to {@link ig.EntityExtended#type}
- adds ig.EntityExtended.TYPE.CHARACTER to {@link ig.EntityExtended#checkAgainst}

Source:

lock()

Locks door and plays directional "locked" animation.

Source:

open()

Opens door and sets ig.Door#collides to ig.EntityExtended.COLLIDES.NEVER.

Source:

spawn()

Source:

unlock()

Unlocks door and stops playing directional "locked" animation.

Source: