home *** CD-ROM | disk | FTP | other *** search
/ UnrealScript Game Programming All in One / UnrealScriptGameProgrammingAllInOne.iso / UGPAIOListings / UGPAIOListingsCh20 / CH20LIST / Classes / CH20_06LIST.uc < prev    next >
Encoding:
Text File  |  2006-02-28  |  2.0 KB  |  53 lines

  1. // %PARAMETERS = "CH20LIST C:\UT2004"
  2. //Identifies the package
  3. //CH20_06LIST.uc
  4.  
  5. //This class tests CH19LIST.Prop
  6. //It is the test driver for the Stage class
  7.  
  8. class CH20_06LIST extends Commandlet;
  9. function int Main(string Args)
  10. {
  11.   //#1
  12.   local Stage firstStage;
  13.   firstStage = new class'Stage';
  14.   Log(Chr(10)$ " Testing the Stage class" $ Chr(10)  );
  15.  
  16.   //#2 
  17.     firstStage.showBasicUse();
  18.     //Orestes-----------------------------------------------------
  19.     firstStage.addActor("Electra", "In robes of court");
  20.     firstStage.addNewEvent("Angry", "Electra",
  21.               "Thou wouldst dishonor me; that much is sure.",
  22.                95);
  23.     firstStage.addProp(95, "Flowers", 
  24.                            "Near and hand as she picks them.");
  25.     firstStage.addActorInterpretation(95, "Concentrates on her work");
  26.  
  27.     //Electra-----------------------------------------------------
  28.     firstStage.addActor("Electra", "In robes of court");
  29.     firstStage.addNewEvent("Cold and angry", "Electra",
  30.               "Am I to make thy rule of honor mine?",
  31.               100);
  32.     firstStage.addProp(100, "Flowers in hand",
  33.                             "Holds flowers and meditates on them.");
  34.     firstStage.addActorInterpretation(100, 
  35.                                       "Looking sternly at her sister");
  36.     //Chrysothemis-----------------------------------------------------
  37.     firstStage.addActor("Chrysothemis", "In mourning");
  38.     firstStage.addNewEvent("Fearful", "Chrysothemis",
  39.             "When thou art wise, then thou shalt guide us both.",
  40.             105);
  41.     firstStage.addProp(105, "Flowers ", 
  42.                             "Looks at flowers Chrysothemis holds.");
  43.     firstStage.addActorInterpretation(105, "Meekly holding up flowers");
  44.  
  45.    //Display all-----------------------------------------------------
  46.   //#3
  47.     firstStage.playScriptLine(95, 95, 95);
  48.     firstStage.playScriptLine(100, 100, 100);
  49.     firstStage.playScriptLine(105 , 105, 105);
  50.  
  51.   return 0;
  52. }
  53.