Line 122... |
Line 122... |
122 |
|
122 |
|
123 |
void AddAnimation(CyStringList *list);
|
123 |
void AddAnimation(CyStringList *list);
|
124 |
void AddAnimation(const Utils::String &data) { m_lAnimations.PushBack(CyString(data), true); _changed(); }
|
124 |
void AddAnimation(const Utils::String &data) { m_lAnimations.PushBack(CyString(data), true); _changed(); }
|
125 |
void AddBodies(const Utils::String &data);
|
125 |
void AddBodies(const Utils::String &data);
|
126 |
void AddBody(const Utils::String §ion, const Utils::String &data);
|
126 |
void AddBody(const Utils::String §ion, const Utils::String &data);
|
127 |
void AddCutData(const Utils::String &data) { m_lCutData.PushBack(CyString(data), true); _changed(); }
|
127 |
void addCutData(const Utils::String& data);
|
128 |
void AddText(int id, const Utils::String &name, const Utils::String &desc );
|
128 |
void AddText(int id, const Utils::String &name, const Utils::String &desc );
|
129 |
void AddCockpit(const Utils::String &cockpit, int game, int mask = -1, int index = -1 );
|
129 |
void AddCockpit(const Utils::String &cockpit, int game, int mask = -1, int index = -1 );
|
130 |
void AddCockpitWeapon(const Utils::String &cockpit, int game, int mask);
|
130 |
void AddCockpitWeapon(const Utils::String &cockpit, int game, int mask);
|
131 |
void NewCockpit(const Utils::String &id, const Utils::String &scene, int mask );
|
131 |
void NewCockpit(const Utils::String &id, const Utils::String &scene, int mask );
|
132 |
void EditCockpit(const Utils::String &id, const Utils::String &cockpit);
|
132 |
void EditCockpit(const Utils::String &id, const Utils::String &cockpit);
|
Line 143... |
Line 143... |
143 |
void AddShipyard ( int s ) { m_iShipyard |= s; _changed(); }
|
143 |
void AddShipyard ( int s ) { m_iShipyard |= s; _changed(); }
|
144 |
void RemoveShipyard ( int s ) { m_iShipyard &= ~(s); _changed(); }
|
144 |
void RemoveShipyard ( int s ) { m_iShipyard &= ~(s); _changed(); }
|
145 |
void SetShipyard(int s, bool b) { if ( b ) AddShipyard(s); else RemoveShipyard(s); }
|
145 |
void SetShipyard(int s, bool b) { if ( b ) AddShipyard(s); else RemoveShipyard(s); }
|
146 |
void ToggleShipyard(int s) { if ( this->IsShipyard(s) ) RemoveShipyard(s); else AddShipyard(s); }
|
146 |
void ToggleShipyard(int s) { if ( this->IsShipyard(s) ) RemoveShipyard(s); else AddShipyard(s); }
|
147 |
|
147 |
|
148 |
bool RemoveCutData(const Utils::String &cut);
|
148 |
bool removeCutData(const Utils::String &cut);
|
149 |
bool RemoveCockpit(const Utils::String &cockpitid);
|
149 |
bool RemoveCockpit(const Utils::String &cockpitid);
|
150 |
bool RemoveComponent(const Utils::String §ion1, const Utils::String §ion2, const Utils::String &data);
|
150 |
bool RemoveComponent(const Utils::String §ion1, const Utils::String §ion2, const Utils::String &data);
|
151 |
bool RemoveDummy(const Utils::String §ion, const Utils::String &data);
|
151 |
bool RemoveDummy(const Utils::String §ion, const Utils::String &data);
|
152 |
bool RemoveBodies(const Utils::String &body);
|
152 |
bool RemoveBodies(const Utils::String &body);
|
153 |
bool RemoveAnimation(const Utils::String &ani);
|
153 |
bool RemoveAnimation(const Utils::String &ani);
|
Line 164... |
Line 164... |
164 |
|
164 |
|
165 |
Utils::String GetShipName(int lang);
|
165 |
Utils::String GetShipName(int lang);
|
166 |
bool ConvertOld(const Utils::String &file);
|
166 |
bool ConvertOld(const Utils::String &file);
|
167 |
|
167 |
|
168 |
CyStringList *GetAnimations() { return &m_lAnimations; }
|
168 |
CyStringList *GetAnimations() { return &m_lAnimations; }
|
169 |
CyStringList *GetCutData() { return &m_lCutData; }
|
169 |
const Utils::CStringList &getCutData() const { return _lCutData; }
|
170 |
CyStringList *GetBodies() { return &m_lBodies; }
|
170 |
CyStringList *GetBodies() { return &m_lBodies; }
|
171 |
CLinkList<SWeaponMask> *GetLaserMasks() { return &m_lWeaponMasks; }
|
171 |
CLinkList<SWeaponMask> *GetLaserMasks() { return &m_lWeaponMasks; }
|
172 |
CLinkList<SWeaponMask> *GetMissileMasks() { return &m_lMissileMasks; }
|
172 |
CLinkList<SWeaponMask> *GetMissileMasks() { return &m_lMissileMasks; }
|
173 |
CLinkList<SText> *GetTexts() { return &m_lText; }
|
173 |
CLinkList<SText> *GetTexts() { return &m_lText; }
|
174 |
CLinkList<SDummy> *GetDummies() { return &m_lDummy; }
|
174 |
CLinkList<SDummy> *GetDummies() { return &m_lDummy; }
|
Line 182... |
Line 182... |
182 |
void SetCreatedShipData(CShipData *data) { m_sData = data->CreateData().ToString(); }
|
182 |
void SetCreatedShipData(CShipData *data) { m_sData = data->CreateData().ToString(); }
|
183 |
bool AnyTexts() { return !m_lText.empty(); }
|
183 |
bool AnyTexts() { return !m_lText.empty(); }
|
184 |
bool AnyDummies() { return !m_lDummy.empty(); }
|
184 |
bool AnyDummies() { return !m_lDummy.empty(); }
|
185 |
bool AnyComponents() { return !m_lComponent.empty(); }
|
185 |
bool AnyComponents() { return !m_lComponent.empty(); }
|
186 |
bool AnyCockpits() { return !m_lCockpit.empty(); }
|
186 |
bool AnyCockpits() { return !m_lCockpit.empty(); }
|
187 |
bool AnyCutData() { return !m_lCutData.Empty(); }
|
187 |
bool anyCutData() { return !_lCutData.empty(); }
|
188 |
bool AnyBodies() { return !m_lBodies.Empty(); }
|
188 |
bool AnyBodies() { return !m_lBodies.Empty(); }
|
189 |
bool AnyAnimations() { return !m_lAnimations.Empty(); }
|
189 |
bool AnyAnimations() { return !m_lAnimations.Empty(); }
|
- |
|
190 |
|
- |
|
191 |
void clearCutData();
|
190 |
|
192 |
|
191 |
Utils::String GetShipClass();
|
193 |
Utils::String GetShipClass();
|
192 |
bool UpdateSigned(bool updateFiles) { m_bSigned = false; return false; }
|
194 |
bool UpdateSigned(bool updateFiles) { m_bSigned = false; return false; }
|
193 |
|
195 |
|
194 |
// ship extraction
|
196 |
// ship extraction
|
Line 231... |
Line 233... |
231 |
virtual void Delete ();
|
233 |
virtual void Delete ();
|
232 |
virtual void SetDefaults ();
|
234 |
virtual void SetDefaults ();
|
233 |
virtual bool CheckHeader(const Utils::String header) const;
|
235 |
virtual bool CheckHeader(const Utils::String header) const;
|
234 |
SCockpit *_findCockpit(const Utils::String &sID);
|
236 |
SCockpit *_findCockpit(const Utils::String &sID);
|
235 |
void _addSection(Utils::CList<STypesSection> &list, const Utils::String §ion, const Utils::String &data);
|
237 |
void _addSection(Utils::CList<STypesSection> &list, const Utils::String §ion, const Utils::String &data);
|
236 |
void _addDataSection(CyStringList &list, Utils::CList<STypesSection> §ionList, bool bUseFirst);
|
238 |
void _addDataSection(CyStringList& list, Utils::CList<STypesSection>& sectionList, bool bUseFirst);
|
- |
|
239 |
void _addDataSection(Utils::CStringList& list, Utils::CList<STypesSection>& sectionList, bool bUseFirst);
|
237 |
bool _addTextFromFile(CFileIO &F, int textId = -1);
|
240 |
bool _addTextFromFile(CFileIO &F, int textId = -1);
|
238 |
|
241 |
|
239 |
protected:
|
242 |
protected:
|
240 |
C_File *m_pSceneFile, *m_pCockpitFile;
|
243 |
C_File *m_pSceneFile, *m_pCockpitFile;
|
241 |
|
244 |
|
Line 244... |
Line 247... |
244 |
int m_iOrgDesc;
|
247 |
int m_iOrgDesc;
|
245 |
|
248 |
|
246 |
Utils::String m_sID;
|
249 |
Utils::String m_sID;
|
247 |
Utils::String m_sData;
|
250 |
Utils::String m_sData;
|
248 |
|
251 |
|
249 |
CyStringList m_lCutData;
|
252 |
Utils::CStringList _lCutData;
|
250 |
CyStringList m_lBodies;
|
253 |
CyStringList m_lBodies;
|
251 |
CyStringList m_lAnimations;
|
254 |
CyStringList m_lAnimations;
|
252 |
CLinkList<SCockpit> m_lCockpit;
|
255 |
CLinkList<SCockpit> m_lCockpit;
|
253 |
CLinkList<SText> m_lText;
|
256 |
CLinkList<SText> m_lText;
|
254 |
CLinkList<SComponent> m_lComponent;
|
257 |
CLinkList<SComponent> m_lComponent;
|