home *** CD-ROM | disk | FTP | other *** search
/ UnrealScript Game Programming All in One / UnrealScriptGameProgrammingAllInOne.iso / UGPAIOListings / UGPAIOListingsCh20 / CH20LIST / Classes / CH20_05LIST.uc < prev    next >
Encoding:
Text File  |  2006-02-27  |  815 b   |  33 lines

  1. // %PARAMETERS = "CH20LIST C:\UT2004"
  2. //Identifies the package
  3. //CH20_05LIST.uc
  4.  
  5. //This class tests CH19LIST.Prop
  6.  
  7. class CH20_05LIST extends Commandlet;
  8. function int Main(string Args)
  9. {
  10.   //#1
  11.   local Prop firstProp;
  12.   local Vector vect;
  13.   vect.x = 20;
  14.   vect.y = 10;
  15.   vect.z = 0;
  16.   firstProp = new class'Prop';
  17.  
  18.   Log(Chr(10)$ " Testing the Prop class" $ Chr(10)  );
  19.  
  20.   //#2
  21.   firstProp.setName("Flowers.");
  22.   firstProp.setAction(" fall from Chrysothemis' hands");
  23.   firstProp.setPos(vect);
  24.   firstProp.setNumber(222);
  25.  
  26.   //#3
  27.   Log(Chr(10) $ "   Prop name: " $ firstProp.getName());
  28.   Log(Chr(10) $ "   Prop number: " $ firstProp.getNumber());
  29.   Log(Chr(10) $ "   Prop position: " $ firstProp.getPos());
  30.   Log(Chr(10) $ "   Prop action: " $firstProp.getAction() ) ;
  31.   return 0;
  32. }
  33.