|
From: <de...@us...> - 2003-03-24 10:26:49
|
Update of /cvsroot/csp/APPLICATIONS/CSPSim/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv24224
Modified Files:
LandingGear.h CSPSim.h AircraftObject.h
Log Message:
added a toggle function for contact marks
Index: LandingGear.h
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/CSPSim/Include/LandingGear.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** LandingGear.h 22 Mar 2003 02:25:18 -0000 1.2
--- LandingGear.h 24 Mar 2003 10:26:44 -0000 1.3
***************
*** 155,160 ****
// doSimplePhysics(float dt) {}
! void Retract() {}
! void Extend() {}
bool getWOW() const { return m_WOW; }
--- 155,173 ----
// doSimplePhysics(float dt) {}
! //FIXME: just for some testing purpose
! void setStatus(bool on) {
! size_t n = m_Gear.size();
! for (unsigned short i = 0; i < n; ++i)
! m_Gear[i]->setExtended(on);
! }
!
! void Retract() {
! setStatus(false);
! }
!
! void Extend() {
! setStatus(true);
! }
!
bool getWOW() const { return m_WOW; }
Index: CSPSim.h
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/CSPSim/Include/CSPSim.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** CSPSim.h 21 Mar 2003 20:08:31 -0000 1.8
--- CSPSim.h 24 Mar 2003 10:26:45 -0000 1.9
***************
*** 83,87 ****
void setActiveObject(simdata::Pointer<DynamicObject> object);
simdata::Pointer<DynamicObject const> const getActiveObject() const;
! VirtualBattlefield * const getBattlefield() const;
void setShell(PyObject *shell) { m_Shell.bind(shell); }
--- 83,87 ----
void setActiveObject(simdata::Pointer<DynamicObject> object);
simdata::Pointer<DynamicObject const> const getActiveObject() const;
! VirtualBattlefield* const getBattlefield() const;
void setShell(PyObject *shell) { m_Shell.bind(shell); }
Index: AircraftObject.h
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/CSPSim/Include/AircraftObject.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AircraftObject.h 21 Mar 2003 22:16:23 -0000 1.5
--- AircraftObject.h 24 Mar 2003 10:26:45 -0000 1.6
***************
*** 73,76 ****
--- 73,78 ----
ACTION_INTERFACE(AircraftObject, WheelBrakeOn);
ACTION_INTERFACE(AircraftObject, WheelBrakeOff);
+ ACTION_INTERFACE(AircraftObject, GearUp);
+ ACTION_INTERFACE(AircraftObject, GearDown);
AircraftObject();
***************
*** 110,113 ****
--- 112,117 ----
virtual void unpack(simdata::UnPacker& p);
virtual void postCreate();
+
+ virtual void setGearStatus(bool on);
simdata::Pointer<AeroDynamics> m_FlightModel;
|