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

    Room

  • Name

    getPaths()

  • Examples

    Room: room{
    n => room1
    s => room2

    pathList:

    Event: "Get paths" {

    foreach (Room in getPaths() as room){
    if (!pathList)
    pathList = [room]
    else
    pathList += [room]
    }

    print(pathList)
    // Outputs room1, room2
    }
    }

    Room: room1
    Room: room2

    /*
    0: north
    1: northeast
    2: east
    3: southeast
    4: south
    5: southwest
    6: west
    7: northwest
    8: up
    9: down
    10: in
    11: out
    */
  • Description

    Returns a list of all paths from the room whether they lead to a room or not. Paths which leads nowhere holds the value null.
  • Syntax

    • room.getPaths()
  • Related

    • down

    • east

    • in

    • getPath()

    • north

    • northeast

    • northwest

    • out

    • setPath()

    • south

    • southeast

    • southwest

    • up

    • west

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

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