home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
Engine
/
Classes
/
Vehicle.uc
< prev
next >
Wrap
Text File
|
2003-06-23
|
921b
|
43 lines
class Vehicle extends Pawn
native
abstract;
var() byte Team;
var bool bDefensive; // should be used by defenders
// generic controls (set by controller, used by concrete derived classes)
var (KVehicle) float Steering; // between -1 and 1
var (KVehicle) float Throttle; // between -1 and 1
cpptext
{
virtual UBOOL moveToward(const FVector &Dest, AActor *GoalActor);
virtual void rotateToward(AActor *Focus, FVector FocalPoint);
virtual int pointReachable(FVector aPoint, int bKnowVisible=0);
virtual int actorReachable(AActor *Other, UBOOL bKnowVisible=0, UBOOL bNoAnchorCheck=0);
}
function PostBeginPlay()
{
Super.PostBeginPlay();
if ( !bDeleteMe )
Level.Game.RegisterVehicle(self);
}
// AI code
function bool Occupied()
{
return ( Controller != None );
}
function Actor GetBestEntry(Pawn P)
{
return self;
}
defaultproperties
{
Team=255
}