10 using namespace XMLSupport;
22 #define NUM_CAM CP_NUMVIEWS
37 void loadsound(
string sooundfile,
bool looping =
false );
71 float insidePanYaw, insidePanPitch;
72 float insidePanYawSpeed, insidePanPitchSpeed;
76 std::list< Matrix >headtrans;
85 std::vector< class Mesh* >mesh;
89 std::auto_ptr<Radar::Display> radarDisplay;
91 std::vector< VDU* >vdu;
93 std::string targetLabel;
95 void *labeledTargetUnit;
102 std::vector< VSSprite* >Panel;
105 bool draw_line_to_target, draw_line_to_targets_target;
106 bool draw_line_to_itts;
112 GFXColor friendly, enemy, neutral, targeted, targetting, planet;
115 float projection_limit_x, projection_limit_y;
116 float inv_screen_aspect_ratio;
117 virtual void SetParent(
Unit *unit,
const char *filename,
const char *unitmodname,
const QVector &startloc );
118 void LoadXML(
const char *
file );
127 float computeLockingSymbol(
Unit *par );
134 void DrawCommunicatingBoxes();
138 void DrawTargetGauges(
Unit *target );
140 void DrawGauges(
Unit *un );
145 void updateRadar(
Unit * un);
153 void ReceivedTargetInfo();
155 static string getsoundending(
int which = 0 );
156 static string getsoundfile(
string filename );
158 void Shake(
float amt,
int level );
159 int Autopilot(
Unit *target );
161 void RestoreViewPort();
162 GameCockpit(
const char *file,
Unit *parent,
const std::string &pilotname );
165 float LookupTargetStat(
int stat,
Unit *target );
169 void Init(
const char *file );
175 void SetupViewPort(
bool clip =
true );
176 int getVDUMode(
int vdunum );
177 void VDUSwitch(
int vdunum );
178 void ScrollVDU(
int vdunum,
int howmuch );
179 void ScrollAllVDU(
int howmuch );
180 int getScrollOffset(
unsigned int whichtype );
181 void SelectProperCamera();
188 void SetSoundFile( std::string sound );
194 void SetStaticAnimation();
200 virtual std::string GetNavSelectedSystem();
204 return &cam[currentcamera];
207 Camera * AccessCamera(
int );
209 void SelectCamera(
int );
213 cam[currentcamera].UpdateGFX();
216 virtual bool SetDrawNavSystem(
bool );
217 virtual bool CanDrawNavSystem();
218 virtual bool DrawNavSystem();
219 virtual bool CheckCommAnimation(
Unit *un );
220 virtual void visitSystem( std::string systemName );
224 virtual void SetInsidePanYawSpeed(
float speed );
225 virtual void SetInsidePanPitchSpeed(
float speed );
227 bool IsPaused()
const;
232 void OnDockEnd(
Unit *station,
Unit *unit);
234 void OnJumpBegin(
Unit *unit);
235 void OnJumpEnd(
Unit *unit);