com.rayrobdod

scriptSample

package scriptSample

Visibility
  1. Public
  2. All

Type Members

  1. final case class State(name: String, flags: Map[String, Int]) extends Product with Serializable

    A simple game state

Value Members

  1. object AttrsToUseFun extends AttrsToUseFun[State]

    A function that will look at an xml Elem's attributes, and will determine whether the corresponding ScriptElement should be used

  2. object Main extends App

    The main method for a sample text-based game using the script library

  3. object PrintName extends ScriptElement[Any] with Product with Serializable

    Repeats the user's name

  4. object SampleScriptFromXml extends ScriptFromXml

    Constructs base script elements from xml

  5. object SampleScriptPrinter extends ScriptPrinter[State]

    A ScriptPrinter that can handle the ScriptElements in the com.rayrobdod.scriptSample package.

  6. object SetGender extends ScriptElement[Any] with Product with Serializable

    Prompts the user to enter Boy or Girl.

  7. object SetName extends ScriptElement[Any] with Product with Serializable

    Prompts the user for a name

  8. object State extends Serializable

Ungrouped