#include "Behaviors/StateMachine.h"
#include "Sound/SoundManager.h"

$nodeclass LGdemo : StateNode, LGmixin() {

  $nodeclass DisplayMessage : LGNode : doStart {
    displayHtmlText("<html><body>Hello world!</body></html>");
    sndman->speak("Look at my display");
  }

  $nodeclass DisplayFile : LGNode : doStart {
    uploadFile("ms/lg/file1.htm");
    displayHtmlFile("file1.htm");
    sndman->speak("Look at my display");
  }

  $setupmachine{
      startnode: StateNode
      startnode =B(YellowButOffset)=> DisplayFile =N=> startnode
      startnode =B(GreenButOffset)=> DisplayMessage =N=> startnode
  }

}

REGISTER_BEHAVIOR(LGdemo);

