1. Casting SPELs in LFE
  2. Title Page
  3. Copyright Page
  4. 1. Introduction
    1. 1.1. What is LFE?
    2. 1.2. Casting SPELs in LFE?
    3. 1.3. About the Text
    4. 1.4. Contributing
  5. 2. Getting Started
    1. 2.1. Prerequisites
    2. 2.2. Project Space
    3. 2.3. The REPL
    4. 2.4. Syntax & Semantics
  6. 3. Introducing the Game
    1. 3.1. Objects
    2. 3.2. Locations
    3. 3.3. Introducing Functions
  7. 4. Getting Functional
    1. 4.1. Global State
    2. 4.2. A Non-global Alternative
    3. 4.3. The Functional Programming Style
  8. 5. Game World Data
    1. 5.1. Organizing with Records
      1. 5.1.1. Game State
      2. 5.1.2. Objects
      3. 5.1.3. Places & Exits
      4. 5.1.4. Rooms
      5. 5.1.5. Goals
      6. 5.1.6. That's a LOT!
    2. 5.2. Making the World Map
    3. 5.3. Records Functions
  9. 6. Looking Around in our Game World
    1. 6.1. Location, Location, Location
    2. 6.2. Thinking in Patterns
    3. 6.3. Exits
    4. 6.4. Finding Things
    5. 6.5. Putting These Pieces Together
  10. 7. Casting SPELs
    1. 7.1. Walking Around
    2. 7.2. Introducing SPELs
    3. 7.3. Interacting
    4. 7.4. Complex Interactions
    5. 7.5. Creating Special Actions
    6. 7.6. The Winning Move
  11. 8. Adding a Simple Game Server
    1. 8.1. The Problem of State
    2. 8.2. A Glance at Closures
    3. 8.3. Light-weight Processes as Closures
    4. 8.4. Making a Game Server
    5. 8.5. Supporting Commands
  12. 9. Let's Play!
    1. 9.1. Playing to Win
    2. 9.2. Playing to Lose
  13. 10. Production-Quality Game
  14. 11. What's Next?
  15. 12. Addenda
    1. 12.1. Changes from the Original
    2. 12.2. The Case Against the Word "Macro"
  16. Feedback
  17. LFE Documentation
  18. Built with mdBook

Casting SPELs in LFE

Casting SPELs in LFE