AINE: Accelerated Interactive Narrator Engine
  • Download
  • References
  • Games
  • Wiki
  • Facebook Twitter
  • Name

    extends

  • Examples

    Object: itemOps{

    Event: "Take" {
    // Allows the player to take the item from the room

    moveTo(player)
    enableEvent("Drop")
    disableEvent("Take")
    }

    Event: ["Drop",false] {
    // Allows the player to drop the item to the room

    player.dropItem(this)
    enableEvent("Take")
    disableEvent("Drop")
    }
    }

    Item: item1 {
    extends: itemOps
    // item1 inherits "Take" and "Drop" event from itemOps
    }

    Item: item2 {
    extends: itemOps
    // item2 inherits "Take" and "Drop" event from itemOps
    }
  • Description

    Extends an object by another object, allowing the extending object to inherit all the event objects of the extended object.

    An object can only extend one object, and the extended object has to be either a generic object or an object of the same type as the extending object.

    The extending object does not inherit the properties of the extended object.
  • Syntax

    • extends:Object
  • Related

    • Character

    • Event

    • Item

    • Object

    • Player

    • Room

  • Contact
  • Terms of Use
  • GitHub
  • Drakkashi.com

The copyright of all images rendered by me goes to their respective owners.
© 2008 Daniel Svejstrup Christensen