Subversion Repositories spk

Rev

Rev 216 | Rev 218 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 216 Rev 217
Line 93... Line 93...
93
	bool IsExistingShip () { return m_bExistingShip; }
93
	bool IsExistingShip () { return m_bExistingShip; }
94
 
94
 
95
	int  GetOriginalDescription () { return m_iOrgDesc; }
95
	int  GetOriginalDescription () { return m_iOrgDesc; }
96
	int  GetShipyards () { return m_iShipyard; }
96
	int  GetShipyards () { return m_iShipyard; }
97
 
97
 
98
	const Utils::String &GetShipID () const { return m_sID; }
98
	const Utils::WString &shipID () const { return m_sID; }
99
	const Utils::String &GetShipData () const { return m_sData; }
99
	const Utils::WString &shipData () const { return m_sData; }
100
	Utils::String GetX3ShipData();
100
	Utils::WString getX3ShipData() const;
101
	Utils::String GetTCShipData();
101
	Utils::WString getTCShipData() const;
102
	Utils::WString shipFilename() const
102
	Utils::WString shipFilename() const
103
	{ 
103
	{ 
104
		Utils::WString s = this->name() + L"-" + this->author();
104
		Utils::WString s = this->name() + L"-" + this->author();
105
		s = s.remove(L' ');
105
		s = s.remove(L' ');
106
		s = s.remove(L'\\');
106
		s = s.remove(L'\\');
Line 113... Line 113...
113
	Utils::WString textDescription(int lang);
113
	Utils::WString textDescription(int lang);
114
 
114
 
115
	void SetLanguageText		( bool b )   { m_bLanguageText = b; _changed(); }
115
	void SetLanguageText		( bool b )   { m_bLanguageText = b; _changed(); }
116
	void SetExistingShip		( bool b )   { m_bExistingShip = b; _changed(); }
116
	void SetExistingShip		( bool b )   { m_bExistingShip = b; _changed(); }
117
	void SetOriginalDescription	( int i )	 { m_iOrgDesc = i; _changed();; }
117
	void SetOriginalDescription	( int i )	 { m_iOrgDesc = i; _changed();; }
118
	void SetShipID				(const Utils::String &sId ) { m_sID = sId; _changed();; }
118
	void setShipID				(const Utils::WString &sId ) { m_sID = sId; _changed();; }
119
	void SetShipData			(const Utils::String &sData ) { m_sData = sData; _changed(); }
119
	void setShipData			(const Utils::WString &sData ) { m_sData = sData; _changed(); }
120
 
120
 
121
	void SetSceneFile ( C_File *f ) { m_pSceneFile = f; }
121
	void SetSceneFile ( C_File *f ) { m_pSceneFile = f; }
122
	void SetCockpitFile ( C_File *f ) { m_pCockpitFile = f; }
122
	void SetCockpitFile ( C_File *f ) { m_pCockpitFile = f; }
123
 
123
 
124
	void addAnimation(const Utils::CStringList &list);
124
	void addAnimation(const Utils::CStringList &list);
Line 179... Line 179...
179
	int GetLaserMask(int game, bool getOnly = false);
179
	int GetLaserMask(int game, bool getOnly = false);
180
	int GetMissileMask(int game, bool getOnly = false);
180
	int GetMissileMask(int game, bool getOnly = false);
181
	void SetLaserMask(int game, int mask);
181
	void SetLaserMask(int game, int mask);
182
	void SetMissileMask(int game, int mask);
182
	void SetMissileMask(int game, int mask);
183
 
183
 
184
	void SetCreatedShipData(CShipData *data) { m_sData = data->createData().toString(); }
184
	void setCreatedShipData(CShipData *data) { m_sData = data->createData(); }
185
	bool AnyTexts() { return !m_lText.empty(); }
185
	bool AnyTexts() { return !m_lText.empty(); }
186
	bool AnyDummies() { return !m_lDummy.empty(); }
186
	bool AnyDummies() { return !m_lDummy.empty(); }
187
	bool AnyComponents() { return !m_lComponent.empty(); }
187
	bool AnyComponents() { return !m_lComponent.empty(); }
188
	bool AnyCockpits() { return !m_lCockpit.empty(); }
188
	bool AnyCockpits() { return !m_lCockpit.empty(); }
189
	bool anyCutData() { return !_lCutData.empty(); }
189
	bool anyCutData() { return !_lCutData.empty(); }
Line 192... Line 192...
192
 
192
 
193
	void clearCutData();
193
	void clearCutData();
194
	void clearAnimations();
194
	void clearAnimations();
195
	void clearBodies();
195
	void clearBodies();
196
 
196
 
197
	Utils::String GetShipClass();
197
	Utils::WString shipClass() const;
198
	virtual bool computeSigned(bool updateFiles) const override { return false; }
198
	virtual bool computeSigned(bool updateFiles) const override { return false; }
199
 
199
 
200
	// ship extraction
200
	// ship extraction
201
	bool startExtractShip(CVirtualFileSystem *pVfs, const Utils::String &sId, CProgressInfo *pProgress);
201
	bool startExtractShip(CVirtualFileSystem *pVfs, const Utils::String &sId, CProgressInfo *pProgress);
202
	bool extractShip(CVirtualFileSystem *pVfs, const Utils::String &sId, CProgressInfo *progress);
202
	bool extractShip(CVirtualFileSystem *pVfs, const Utils::String &sId, CProgressInfo *progress);
Line 247... Line 247...
247
 
247
 
248
	bool m_bLanguageText, m_bExistingShip;
248
	bool m_bLanguageText, m_bExistingShip;
249
 
249
 
250
	int m_iOrgDesc;
250
	int m_iOrgDesc;
251
 
251
 
252
	Utils::String m_sID;
252
	Utils::WString m_sID;
253
	Utils::String m_sData;
253
	Utils::WString m_sData;
254
 
254
 
255
	Utils::WStringList		_lCutData;
255
	Utils::WStringList		_lCutData;
256
	Utils::WStringList		_lBodies;
256
	Utils::WStringList		_lBodies;
257
	Utils::WStringList		_lAnimations;
257
	Utils::WStringList		_lAnimations;
258
	CLinkList<SCockpit>		m_lCockpit;
258
	CLinkList<SCockpit>		m_lCockpit;