Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.blogger.ticktockgames.cgf.data
- {
- import com.blogger.ticktockgames.cgf.CGFGameModelInterface;
- import com.blogger.ticktockgames.epok.data.DirectorNodeLibrary;
- import com.blogger.ticktockgames.epok.data.DialogChoice;
- import com.blogger.ticktockgames.epok.data.DialogContent;
- import com.blogger.ticktockgames.epok.data.DirectorNode;
- import com.blogger.ticktockgames.epok.utils.DLog;
- import flash.utils.getDefinitionByName;
- import flash.utils.getQualifiedClassName;
- import flash.utils.getDefinitionByName;
- import flash.utils.getQualifiedClassName;
- /*
- * This is an autogenerated class.
- * Do not edit this file directly.
- * Change the corresponding XML file labeled CGFDirectorNodeLibrary.xml
- */
- public class CGFDirectorNodeLibrary extends DirectorNodeLibrary
- {
- public function CGFDirectorNodeLibrary():void
- {
- // Do nothing
- }
- /*
- public static function getNodeById( idStr:String ):DirectorNode
- {
- //var className:Class = getLibraryClass();
- //var targetFunction:Function = className[idStr]
- //var targetFunction:Function = className[idStr] as Function;
- var resultNode:DirectorNode = CGFDirectorNodeLibrary[idStr]();
- // Check if function is valid
- if( resultNode === null)
- {
- DLog.e( "DirectorNodeLibrary.getNodeById(" + idStr.toString() + ")", "Function returned invalid.");
- return null;
- }
- return resultNode = CGFDirectorNodeLibrary[idStr]();
- //return resultNode = className.targetFunction() as DirectorNode;
- }
- */
- protected override function getLibraryClass():Class
- {
- return CGFDirectorNodeLibrary;
- }
- public static function KarensHouse_1():DirectorNode
- {
- var resultNode:DirectorNode = new DirectorNode();
- var textId:String = "KarensHouse_1";
- var choiceListArray:Array = new Array();
- var nextNodeListArray:Array = new Array();
- var onEnterFunc:Function;
- var onExitFunc:Function;
- var conditionFunc:Function;
- onEnterFunc = function(){
- // Insert Enter code here
- return;
- };
- onExitFunc = function(){
- // Insert Exit code here
- return;
- };
- conditionFunc = function(){
- return true;
- };
- var dialogText:DialogContent = new DialogContent( "I can't believe Katie didn't show up to my 30th. She was so excited about it. It's just not like her to flake on me.", "Karen", null);
- // choice list goes here
- nextNodeListArray.push( "KarensHouse_2" );
- resultNode.init( textId,
- dialogText,
- nextNodeListArray,
- choiceListArray,
- onEnterFunc,
- onExitFunc,
- conditionFunc );
- return resultNode;
- } // function KarensHouse_1
- public static function KarensHouse_2():DirectorNode
- {
- var resultNode:DirectorNode = new DirectorNode();
- var textId:String = "KarensHouse_2";
- var choiceListArray:Array = new Array();
- var nextNodeListArray:Array = new Array();
- var onEnterFunc:Function;
- var onExitFunc:Function;
- var conditionFunc:Function;
- onEnterFunc = function(){
- // Insert Enter code here
- return;
- };
- onExitFunc = function(){
- // Insert Exit code here
- return;
- };
- conditionFunc = function(){
- return true;
- };
- var dialogText:DialogContent = new DialogContent( "", "", null);
- // choice list goes here
- choiceListArray.push( new DialogChoice( "KarensHouse_3", "Check Voicemail" ) );
- choiceListArray.push( new DialogChoice( "KarensHouse_4", "Call Katie" ) );
- choiceListArray.push( new DialogChoice( "KarensHouse_6", "Call Police" ) );
- choiceListArray.push( new DialogChoice( "KarensHouse_5", "Leave" ) );
- // Next Node list goes here
- resultNode.init( textId,
- dialogText,
- nextNodeListArray,
- choiceListArray,
- onEnterFunc,
- onExitFunc,
- conditionFunc );
- return resultNode;
- } // function KarensHouse_2
- public static function KarensHouse_3():DirectorNode
- {
- var resultNode:DirectorNode = new DirectorNode();
- var textId:String = "KarensHouse_3";
- var choiceListArray:Array = new Array();
- var nextNodeListArray:Array = new Array();
- var onEnterFunc:Function;
- var onExitFunc:Function;
- var conditionFunc:Function;
- onEnterFunc = function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- flags.setFlagByName("KarensHouse_3", 1);
- return;
- };
- onExitFunc = function(){
- // Insert Exit code here
- return;
- };
- conditionFunc = function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- return flags.getFlagValueByName("KarensHouse_3") != 1;
- };
- var dialogText:DialogContent = new DialogContent( "Karen Checks her voicemail.", "", null);
- // choice list goes here
- nextNodeListArray.push( "KarensHouse_10" );
- resultNode.init( textId,
- dialogText,
- nextNodeListArray,
- choiceListArray,
- onEnterFunc,
- onExitFunc,
- conditionFunc );
- return resultNode;
- } // function KarensHouse_3
- public static function KarensHouse_4():DirectorNode
- {
- var resultNode:DirectorNode = new DirectorNode();
- var textId:String = "KarensHouse_4";
- var choiceListArray:Array = new Array();
- var nextNodeListArray:Array = new Array();
- var onEnterFunc:Function;
- var onExitFunc:Function;
- var conditionFunc:Function;
- onEnterFunc = function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- flags.setFlagByName("KarensHouse_4", 1);
- return;
- };
- onExitFunc = function(){
- // Insert Exit code here
- return;
- };
- conditionFunc = function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- return flags.getFlagValueByName("KarensHouse_4") != 1;
- };
- var dialogText:DialogContent = new DialogContent( "Karen calls Katie", "", null);
- // choice list goes here
- nextNodeListArray.push( "KarensHouse_11" );
- resultNode.init( textId,
- dialogText,
- nextNodeListArray,
- choiceListArray,
- onEnterFunc,
- onExitFunc,
- conditionFunc );
- return resultNode;
- } // function KarensHouse_4
- public static function KarensHouse_5():DirectorNode
- {
- var resultNode:DirectorNode = new DirectorNode();
- var textId:String = "KarensHouse_5";
- var choiceListArray:Array = new Array();
- var nextNodeListArray:Array = new Array();
- var onEnterFunc:Function;
- var onExitFunc:Function;
- var conditionFunc:Function;
- onEnterFunc = function(){
- // Insert Enter code here
- return;
- };
- onExitFunc = function(){
- // Insert Exit code here
- return;
- };
- conditionFunc = function(){
- return true;
- };
- var dialogText:DialogContent = new DialogContent( "", "", null);
- // choice list goes here
- nextNodeListArray.push( "KarensHouse_7" );
- nextNodeListArray.push( "KarensHouse_8" );
- resultNode.init( textId,
- dialogText,
- nextNodeListArray,
- choiceListArray,
- onEnterFunc,
- onExitFunc,
- conditionFunc );
- return resultNode;
- } // function KarensHouse_5
- public static function KarensHouse_6():DirectorNode
- {
- var resultNode:DirectorNode = new DirectorNode();
- var textId:String = "KarensHouse_6";
- var choiceListArray:Array = new Array();
- var nextNodeListArray:Array = new Array();
- var onEnterFunc:Function;
- var onExitFunc:Function;
- var conditionFunc:Function;
- onEnterFunc = function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- flags.setFlagByName("KarensHouse_6", 1);
- return;
- };
- onExitFunc = function(){
- // Insert Exit code here
- return;
- };
- conditionFunc = function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- return (flags.getFlagValueByName("KarensHouse_6") == 0 && flags.getFlagValueByName("KarensHouse_9") == 1);
- };
- var dialogText:DialogContent = new DialogContent( "Maybe I should just do what he says. I don't want to risk it.", "Karen", null);
- // choice list goes here
- nextNodeListArray.push( "KarensHouse_2" );
- resultNode.init( textId,
- dialogText,
- nextNodeListArray,
- choiceListArray,
- onEnterFunc,
- onExitFunc,
- conditionFunc );
- return resultNode;
- } // function KarensHouse_6
- public static function KarensHouse_7():DirectorNode
- {
- var resultNode:DirectorNode = new DirectorNode();
- var textId:String = "KarensHouse_7";
- var choiceListArray:Array = new Array();
- var nextNodeListArray:Array = new Array();
- var onEnterFunc:Function;
- var onExitFunc:Function;
- var conditionFunc:Function;
- onEnterFunc = function(){
- return;
- };
- onExitFunc = function(){
- // Insert Exit code here
- return;
- };
- conditionFunc = function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- return (flags.getFlagValueByName("KarensHouse_9") == 0);
- };
- var dialogText:DialogContent = new DialogContent( "I don't even know where she would be.", "Karen", null);
- // choice list goes here
- nextNodeListArray.push( "KarensHouse_2" );
- resultNode.init( textId,
- dialogText,
- nextNodeListArray,
- choiceListArray,
- onEnterFunc,
- onExitFunc,
- conditionFunc );
- return resultNode;
- } // function KarensHouse_7
- public static function KarensHouse_8():DirectorNode
- {
- var resultNode:DirectorNode = new DirectorNode();
- var textId:String = "KarensHouse_8";
- var choiceListArray:Array = new Array();
- var nextNodeListArray:Array = new Array();
- var onEnterFunc:Function;
- var onExitFunc:Function;
- var conditionFunc:Function;
- onEnterFunc = function(){
- return;
- };
- onExitFunc = function(){
- // Insert Exit code here
- return;
- };
- conditionFunc = function(){
- return true;
- };
- var dialogText:DialogContent = new DialogContent( "Karen leaves her home.", "Tommy", null);
- // choice list goes here
- resultNode.init( textId,
- dialogText,
- nextNodeListArray,
- choiceListArray,
- onEnterFunc,
- onExitFunc,
- conditionFunc );
- return resultNode;
- } // function KarensHouse_8
- public static function KarensHouse_9():DirectorNode
- {
- var resultNode:DirectorNode = new DirectorNode();
- var textId:String = "KarensHouse_9";
- var choiceListArray:Array = new Array();
- var nextNodeListArray:Array = new Array();
- var onEnterFunc:Function;
- var onExitFunc:Function;
- var conditionFunc:Function;
- onEnterFunc = function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- flags.setFlagByName("KarensHouse_9", 1);
- return;
- };
- onExitFunc = function(){
- // Insert Exit code here
- return;
- };
- conditionFunc = function(){
- return true;
- };
- var dialogText:DialogContent = new DialogContent( "Hey Karen, it's Tommy, your former brother-in-law. Katie here wishes you a happy birthday too... I'd pass the phone to her but she's a little... tied up at the moment. If you ever want to see her again you'll do exactly as I say. Meet me tonight at 888 Brannen Street. And don't try anything unless you want to become an only child. See ya soon, kiddo. *Click*", "Tommy", null);
- // choice list goes here
- nextNodeListArray.push( "KarensHouse_2" );
- resultNode.init( textId,
- dialogText,
- nextNodeListArray,
- choiceListArray,
- onEnterFunc,
- onExitFunc,
- conditionFunc );
- return resultNode;
- } // function KarensHouse_9
- public static function KarensHouse_10():DirectorNode
- {
- var resultNode:DirectorNode = new DirectorNode();
- var textId:String = "KarensHouse_10";
- var choiceListArray:Array = new Array();
- var nextNodeListArray:Array = new Array();
- var onEnterFunc:Function;
- var onExitFunc:Function;
- var conditionFunc:Function;
- onEnterFunc = function(){
- return;
- };
- onExitFunc = function(){
- // Insert Exit code here
- return;
- };
- conditionFunc = function(){
- return true;
- };
- var dialogText:DialogContent = new DialogContent( "Happy birthday to you...", "????", null);
- // choice list goes here
- nextNodeListArray.push( "KarensHouse_9" );
- resultNode.init( textId,
- dialogText,
- nextNodeListArray,
- choiceListArray,
- onEnterFunc,
- onExitFunc,
- conditionFunc );
- return resultNode;
- } // function KarensHouse_10
- public static function KarensHouse_11():DirectorNode
- {
- var resultNode:DirectorNode = new DirectorNode();
- var textId:String = "KarensHouse_11";
- var choiceListArray:Array = new Array();
- var nextNodeListArray:Array = new Array();
- var onEnterFunc:Function;
- var onExitFunc:Function;
- var conditionFunc:Function;
- onEnterFunc = function(){
- return;
- };
- onExitFunc = function(){
- // Insert Exit code here
- return;
- };
- conditionFunc = function(){
- return true;
- };
- var dialogText:DialogContent = new DialogContent( "Hi this is Katie. I'm not here right now, but if you leave you name number, and message I'll get back to you as soon as I can! *Beep*", "Katie", null);
- // choice list goes here
- nextNodeListArray.push( "KarensHouse_2" );
- resultNode.init( textId,
- dialogText,
- nextNodeListArray,
- choiceListArray,
- onEnterFunc,
- onExitFunc,
- conditionFunc );
- return resultNode;
- } // function KarensHouse_11
- } // class
- } // package
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement