Home
last modified time | relevance | path

Searched refs:AAirMoveType (Results 1 – 14 of 14) sorted by relevance

/dports/games/spring/spring_98.0/rts/Sim/MoveTypes/
H A DAAirMoveType.cpp15 CR_BIND_DERIVED_INTERFACE(AAirMoveType, AMoveType) in CR_BIND_DERIVED_INTERFACE() argument
17 CR_REG_METADATA(AAirMoveType, ( in CR_BIND_DERIVED_INTERFACE()
42 AAirMoveType::AAirMoveType(CUnit* unit): in CR_BIND_DERIVED_INTERFACE()
75 AAirMoveType::~AAirMoveType() in ~AAirMoveType()
83 bool AAirMoveType::UseSmoothMesh() const { in UseSmoothMesh()
129 void AAirMoveType::DependentDied(CObject* o) { in DependentDied()
148 bool AAirMoveType::Update() { in Update()
168 void AAirMoveType::UpdateLanded() in UpdateLanded()
207 void AAirMoveType::UpdateFuel(bool slowUpdate) { in UpdateFuel()
233 void AAirMoveType::CheckForCollision() in CheckForCollision()
[all …]
H A DAAirMoveType.h14 class AAirMoveType : public AMoveType
16 CR_DECLARE(AAirMoveType)
35 AAirMoveType(CUnit* unit);
36 virtual ~AAirMoveType();
H A DHoverAirMoveType.cpp21 CR_BIND_DERIVED(CHoverAirMoveType, AAirMoveType, (NULL))
63 AAirMoveType(owner), in CHoverAirMoveType()
330 AAirMoveType::UpdateLanded(); in UpdateLanded()
897 AAirMoveType::Update(); in Update()
1008 AAirMoveType::ReservePad(lp); in SlowUpdate()
1070 if (aircraftState == AAirMoveType::AIRCRAFT_LANDED) { in Takeoff()
1071 SetState(AAirMoveType::AIRCRAFT_TAKEOFF); in Takeoff()
1073 if (aircraftState == AAirMoveType::AIRCRAFT_LANDING) { in Takeoff()
1074 SetState(AAirMoveType::AIRCRAFT_FLYING); in Takeoff()
1080 if (aircraftState == AAirMoveType::AIRCRAFT_HOVERING) { in Land()
[all …]
H A DStrafeAirMoveType.cpp23 CR_BIND_DERIVED(CStrafeAirMoveType, AAirMoveType, (NULL))
348 AAirMoveType(owner), in CStrafeAirMoveType()
426 AAirMoveType::Update(); in Update()
895 AAirMoveType::UpdateLanded(); in UpdateLanded()
1174 void CStrafeAirMoveType::SetState(AAirMoveType::AircraftState newState) in SetState()
1296 if (aircraftState != AAirMoveType::AIRCRAFT_FLYING) in StopMoving()
1313 if (aircraftState != AAirMoveType::AIRCRAFT_FLYING) { in Takeoff()
1315 if (aircraftState == AAirMoveType::AIRCRAFT_LANDED) { in Takeoff()
1316 SetState(AAirMoveType::AIRCRAFT_TAKEOFF); in Takeoff()
1318 if (aircraftState == AAirMoveType::AIRCRAFT_LANDING) { in Takeoff()
[all …]
H A DStrafeAirMoveType.h12 class CStrafeAirMoveType: public AAirMoveType
H A DHoverAirMoveType.h10 class CHoverAirMoveType: public AAirMoveType
/dports/games/spring/spring_98.0/rts/Sim/Units/CommandAI/
H A DAirCAI.cpp192 AAirMoveType* myPlane = GetStrafeAirMoveType(owner); in SlowUpdate()
196 if ((myPlane->aircraftState == AAirMoveType::AIRCRAFT_FLYING) in SlowUpdate()
231 bool CAirCAI::AirAutoGenerateTarget(AAirMoveType* myPlane) { in AirAutoGenerateTarget()
239 if (myPlane->aircraftState == AAirMoveType::AIRCRAFT_FLYING && autoLand) { in AirAutoGenerateTarget()
279 AAirMoveType* myPlane = GetStrafeAirMoveType(owner); in ExecuteFight()
455 AAirMoveType* myPlane = GetStrafeAirMoveType(owner); in ExecuteAreaAttack()
466 if (myPlane->aircraftState == AAirMoveType::AIRCRAFT_LANDED) in ExecuteAreaAttack()
477 if (myPlane->aircraftState != AAirMoveType::AIRCRAFT_LANDED) { in ExecuteAreaAttack()
556 static_cast<AAirMoveType*>(owner->moveType)->Takeoff(); in BuggerOff()
H A DAirCAI.h12 class AAirMoveType; variable
40 bool AirAutoGenerateTarget(AAirMoveType*);
H A DMobileCAI.cpp34 static AAirMoveType* GetAirMoveType(const CUnit* owner) { in GetAirMoveType()
38 return static_cast<AAirMoveType*>(owner->prevMoveType); in GetAirMoveType()
41 return static_cast<AAirMoveType*>(owner->moveType); in GetAirMoveType()
212 AAirMoveType* airMT = GetAirMoveType(owner); in GiveCommandReal()
H A DTransportCAI.cpp201 …gRadius && (!owner->IsMoving() || (am != NULL && am->aircraftState != AAirMoveType::AIRCRAFT_FLYIN… in ExecuteLoadUnits()
344 const bool isAirTrans = (dynamic_cast<AAirMoveType*>(owner->moveType) != NULL); in FindEmptySpot()
/dports/games/spring/spring_98.0/rts/Sim/Units/Scripts/
H A DUnitScript.cpp1591 AAirMoveType* amt = dynamic_cast<AAirMoveType*>(unit->moveType); in SetUnitVal()
1594 amt->SetState(AAirMoveType::AIRCRAFT_CRASHING); in SetUnitVal()
1596 amt->SetState(AAirMoveType::AIRCRAFT_FLYING); in SetUnitVal()
/dports/games/spring/spring_98.0/rts/Lua/
H A DLuaSyncedRead.cpp3788 const AAirMoveType* aamt = dynamic_cast<AAirMoveType*>(unit->moveType); in GetUnitMoveTypeData()
3805 case AAirMoveType::AIRCRAFT_LANDED: in GetUnitMoveTypeData()
3808 case AAirMoveType::AIRCRAFT_FLYING: in GetUnitMoveTypeData()
3811 case AAirMoveType::AIRCRAFT_LANDING: in GetUnitMoveTypeData()
3814 case AAirMoveType::AIRCRAFT_CRASHING: in GetUnitMoveTypeData()
3817 case AAirMoveType::AIRCRAFT_TAKEOFF: in GetUnitMoveTypeData()
3820 case AAirMoveType::AIRCRAFT_HOVERING: in GetUnitMoveTypeData()
3864 case AAirMoveType::AIRCRAFT_LANDED: in GetUnitMoveTypeData()
3867 case AAirMoveType::AIRCRAFT_FLYING: in GetUnitMoveTypeData()
3870 case AAirMoveType::AIRCRAFT_LANDING: in GetUnitMoveTypeData()
[all …]
H A DLuaSyncedCtrl.cpp1824 AAirMoveType* amt = dynamic_cast<AAirMoveType*>(unit->moveType); in SetUnitCrashing()
1829 const AAirMoveType::AircraftState aircraftState = amt->aircraftState; in SetUnitCrashing()
1833 if ( wantCrash && (aircraftState == AAirMoveType::AIRCRAFT_FLYING)) in SetUnitCrashing()
1834 amt->SetState(AAirMoveType::AIRCRAFT_CRASHING); in SetUnitCrashing()
1836 if (!wantCrash && (aircraftState == AAirMoveType::AIRCRAFT_CRASHING)) in SetUnitCrashing()
1837 amt->SetState(AAirMoveType::AIRCRAFT_FLYING); in SetUnitCrashing()
/dports/games/spring/spring_98.0/rts/Sim/Weapons/
H A DWeapon.cpp407 const AAirMoveType* airMoveType = dynamic_cast<AAirMoveType*>(owner->moveType); in CanFire()
413 if (airMoveType != NULL && airMoveType->GetPadStatus() != AAirMoveType::PAD_STATUS_FLYING) in CanFire()