home *** CD-ROM | disk | FTP | other *** search
- // %PARAMETERS = "CH20LIST C:\UT2004"
- //Identifies the package
- //CH20_07LIST.uc
- //Test driver for the SoundProp class
-
- class CH20_07LIST extends Commandlet;
- function int Main(string Args)
- {
- //#1
- local SoundProp firstProp;
- firstProp = new class'SoundProp';
-
-
- Log(Chr(10)$ " Testing the SoundProp class" $ Chr(10) );
-
- //#2
- firstProp.setName("Sirens.");
- firstProp.setAction("Play");
- firstProp.setPPos(2);
- firstProp.setNumber(222);
- firstProp.setPrimaryX(987
- );
-
-
- //#3
- Log(Chr(10) $ " Sound name: " $ firstProp.getName());
- Log(Chr(10) $ " Sound number: " $ firstProp.getNumber());
- Log(Chr(10) $ " Sound Play position: " $ firstProp.getPPos());
- Log(Chr(10) $ " getAction(): " $firstProp.getAction() ) ;
-
- //#4
- //Call to the parent class (Prop)
- Log(Chr(10) $ " getPrimaryX: " $firstProp.getPrimaryX() ) ;
- return 0;
- return 0;
- }
-