home *** CD-ROM | disk | FTP | other *** search
- // %PARAMETERS = "CH20LIST C:\UT2004"
- //Identifies the package
- //CH20_05LIST.uc
-
- //This class tests CH19LIST.Prop
-
- class CH20_05LIST extends Commandlet;
- function int Main(string Args)
- {
- //#1
- local Prop firstProp;
- local Vector vect;
- vect.x = 20;
- vect.y = 10;
- vect.z = 0;
- firstProp = new class'Prop';
-
- Log(Chr(10)$ " Testing the Prop class" $ Chr(10) );
-
- //#2
- firstProp.setName("Flowers.");
- firstProp.setAction(" fall from Chrysothemis' hands");
- firstProp.setPos(vect);
- firstProp.setNumber(222);
-
- //#3
- Log(Chr(10) $ " Prop name: " $ firstProp.getName());
- Log(Chr(10) $ " Prop number: " $ firstProp.getNumber());
- Log(Chr(10) $ " Prop position: " $ firstProp.getPos());
- Log(Chr(10) $ " Prop action: " $firstProp.getAction() ) ;
- return 0;
- }
-