-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCreatureProperties.h
634 lines (565 loc) · 16.9 KB
/
CreatureProperties.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
#if !defined(AFX_CREATUREGENERAL_H__A0634BD1_B659_442E_BD5B_D5F6F56A742B__INCLUDED_)
#define AFX_CREATUREGENERAL_H__A0634BD1_B659_442E_BD5B_D5F6F56A742B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CreatureGeneral.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CCreatureGeneral dialog
class CCreatureGeneral : public CPropertyPage
{
DECLARE_DYNCREATE(CCreatureGeneral)
// Construction
public:
CCreatureGeneral();
~CCreatureGeneral();
void RefreshGeneral();
// Dialog Data
//{{AFX_DATA(CCreatureGeneral)
enum { IDD = IDD_CREATUREGENERAL };
CString m_longname;
BOOL m_longnametag;
CString m_shortname;
BOOL m_shortnametag;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCreatureGeneral)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
CString FindKit(unsigned int kit);
int FillKitCombo(CString idsname, CComboBox *cb, int len);
// Generated message map functions
//{{AFX_MSG(CCreatureGeneral)
afx_msg void OnKillfocusLongname();
afx_msg void OnKillfocusLongnameref();
afx_msg void OnLongnametag();
afx_msg void OnKillfocusShortname();
afx_msg void OnKillfocusShortnameref();
afx_msg void OnShortnametag();
afx_msg void OnKillfocusXpvalue();
afx_msg void OnKillfocusStateflags();
afx_msg void OnKillfocusCurrxp();
afx_msg void OnKillfocusGold();
afx_msg void OnKillfocusCurrhp();
afx_msg void OnKillfocusMaxhp();
afx_msg void OnKillfocusAnimation();
afx_msg void OnKillfocusLevel1();
afx_msg void OnKillfocusLevel2();
afx_msg void OnKillfocusLevel3();
virtual BOOL OnInitDialog();
afx_msg void OnKillfocusMorale();
afx_msg void OnKillfocusMbreak();
afx_msg void OnKillfocusMrecovery();
afx_msg void OnKillfocusIdsea();
afx_msg void OnKillfocusIdsgeneral();
afx_msg void OnKillfocusIdsrace();
afx_msg void OnKillfocusIdsclass();
afx_msg void OnKillfocusIdsspecific();
afx_msg void OnKillfocusIdsgender();
afx_msg void OnKillfocusIdsalignment();
afx_msg void OnKillfocusHated();
afx_msg void OnKillfocusThac0();
afx_msg void OnKillfocusNumattacks();
afx_msg void OnKillfocusDualflags();
afx_msg void OnV10();
afx_msg void OnV22();
afx_msg void OnV90();
afx_msg void OnV12();
afx_msg void OnNew1();
afx_msg void OnNew2();
afx_msg void OnKillfocusKit();
afx_msg void OnLevelslot();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CCreatureIcons dialog
class CCreatureIcons : public CPropertyPage
{
DECLARE_DYNCREATE(CCreatureIcons)
// Construction
public:
CCreatureIcons();
~CCreatureIcons();
void RefreshIcons();
// Dialog Data
//{{AFX_DATA(CCreatureIcons)
enum { IDD = IDD_CREATUREICONS };
CStatic m_largeportrait;
CStatic m_smallportrait;
//}}AFX_DATA
CString m_bms, m_bml;
COLORREF m_bgcolor;
bool m_play;
int m_playmax, m_playindex;
HBITMAP m_hb1, m_hb2;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCreatureIcons)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
void ColorDlg(int idx);
void OnBrowseBCS(int idx);
// Generated message map functions
//{{AFX_MSG(CCreatureIcons)
afx_msg void OnKillfocusSmallportrait();
afx_msg void OnKillfocusLargeportrait();
afx_msg void OnKillfocusCarmor();
afx_msg void OnKillfocusChair();
afx_msg void OnKillfocusCleather();
afx_msg void OnKillfocusCmajor();
afx_msg void OnKillfocusCmetal();
afx_msg void OnKillfocusCminor();
afx_msg void OnKillfocusCskin();
afx_msg void OnKillfocusOverride();
afx_msg void OnKillfocusClass();
afx_msg void OnKillfocusRace();
afx_msg void OnKillfocusGeneral();
afx_msg void OnKillfocusDefault();
afx_msg void OnKillfocusDialog();
afx_msg void OnKillfocusDvar();
afx_msg void OnBrowse();
afx_msg void OnBrowse1();
afx_msg void OnBrowse2();
afx_msg void OnBrowse3();
afx_msg void OnBrowse4();
afx_msg void OnBrowse5();
afx_msg void OnBrowse6();
afx_msg void OnBrowse7();
afx_msg void OnBrowse8();
afx_msg void OnBrowse9();
afx_msg void OnBrowse10();
afx_msg void OnBrowse11();
afx_msg void OnBrowse12();
afx_msg void OnBrowse13();
afx_msg void OnBrowse14();
virtual BOOL OnInitDialog();
afx_msg void OnPlay();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CCreatureSkills dialog
class CCreatureSkills : public CPropertyPage
{
DECLARE_DYNCREATE(CCreatureSkills)
// Construction
public:
CCreatureSkills();
~CCreatureSkills();
void RefreshSkills();
// Dialog Data
//{{AFX_DATA(CCreatureSkills)
enum { IDD = IDD_CREATURESKILLS };
CString m_pst;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCreatureSkills)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
// Generated message map functions
//{{AFX_MSG(CCreatureSkills)
afx_msg void OnKillfocusHide();
afx_msg void OnKillfocusDetill();
afx_msg void OnKillfocusSettrap();
afx_msg void OnKillfocusLore();
afx_msg void OnKillfocusLockpick();
afx_msg void OnKillfocusStealth();
afx_msg void OnKillfocusFindtrap();
afx_msg void OnKillfocusPickpocket();
afx_msg void OnKillfocusLuck();
afx_msg void OnKillfocusTracking();
afx_msg void OnKillfocusStr();
afx_msg void OnKillfocusInt();
afx_msg void OnKillfocusDex();
afx_msg void OnKillfocusCha();
afx_msg void OnKillfocusFatigue();
afx_msg void OnKillfocusStrbon();
afx_msg void OnKillfocusWis();
afx_msg void OnKillfocusCon();
afx_msg void OnKillfocusIntox();
afx_msg void OnKillfocusAc();
afx_msg void OnKillfocusEffac();
afx_msg void OnKillfocusCrushing();
afx_msg void OnKillfocusMissile();
afx_msg void OnKillfocusSlashing();
afx_msg void OnKillfocusPiercing();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CCreatureResist dialog
class CCreatureResist : public CPropertyPage
{
DECLARE_DYNCREATE(CCreatureResist)
// Construction
public:
CCreatureResist();
~CCreatureResist();
void RefreshResist();
// Dialog Data
//{{AFX_DATA(CCreatureResist)
enum { IDD = IDD_CREATURERES };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCreatureResist)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
void SetDefaultSaves(CString table);
// Generated message map functions
//{{AFX_MSG(CCreatureResist)
afx_msg void OnKillfocusDeath();
afx_msg void OnKillfocusWands();
afx_msg void OnKillfocusPolymorph();
afx_msg void OnKillfocusBreath();
afx_msg void OnKillfocusSpells();
afx_msg void OnKillfocusFire();
afx_msg void OnKillfocusCold();
afx_msg void OnKillfocusElectricity();
afx_msg void OnKillfocusAcid();
afx_msg void OnKillfocusMagic();
afx_msg void OnKillfocusMagfire();
afx_msg void OnKillfocusMagcold();
afx_msg void OnKillfocusSlashing();
afx_msg void OnKillfocusCrushing();
afx_msg void OnKillfocusPiercing();
afx_msg void OnKillfocusMissile();
afx_msg void OnDef1();
afx_msg void OnDef2();
afx_msg void OnDef3();
afx_msg void OnDef4();
virtual BOOL OnInitDialog();
afx_msg void OnKillfocusUndead();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CCreatureStrings dialog
class CCreatureStrings : public CPropertyPage
{
DECLARE_DYNCREATE(CCreatureStrings)
// Construction
public:
CCreatureStrings();
~CCreatureStrings();
void RefreshStrings();
// Dialog Data
//{{AFX_DATA(CCreatureStrings)
enum { IDD = IDD_CREATURESTRINGS };
CEdit m_buddycontrol;
CSpinButtonCtrl m_spincontrol;
CComboBox m_slotpicker_control;
CString m_text;
BOOL m_tagged;
CString m_soundref;
int m_ref;
//}}AFX_DATA
int m_stringnum;
int m_stringcount;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCreatureStrings)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
// Generated message map functions
//{{AFX_MSG(CCreatureStrings)
virtual BOOL OnInitDialog();
afx_msg void OnKillfocusSlotpicker();
afx_msg void OnSelchangeSlotpicker();
afx_msg void OnKillfocusRef();
afx_msg void OnTagged();
afx_msg void OnKillfocusSoundref();
afx_msg void OnKillfocusText();
afx_msg void OnPlay();
afx_msg void OnChangeBuddy();
afx_msg void OnCopy();
afx_msg void OnPaste();
afx_msg void OnExport();
afx_msg void OnImport();
afx_msg void OnClear();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CCreatureUnknown dialog
class CCreatureUnknown : public CPropertyPage
{
DECLARE_DYNCREATE(CCreatureUnknown)
// Construction
public:
CCreatureUnknown();
~CCreatureUnknown();
void RefreshUnknown();
// Dialog Data
//{{AFX_DATA(CCreatureUnknown)
enum { IDD = IDD_CREATUREUNKNOWN };
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCreatureUnknown)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
// Generated message map functions
//{{AFX_MSG(CCreatureUnknown)
virtual BOOL OnInitDialog();
afx_msg void OnKillfocusLarge();
afx_msg void OnKillfocusSmall();
afx_msg void OnKillfocusBow();
afx_msg void OnKillfocusSpear();
afx_msg void OnKillfocusBlunt();
afx_msg void OnKillfocusSpiked();
afx_msg void OnKillfocusAxe();
afx_msg void OnKillfocusMissile();
afx_msg void OnKillfocusU1();
afx_msg void OnKillfocusU2();
afx_msg void OnKillfocusU3();
afx_msg void OnKillfocusU4();
afx_msg void OnKillfocusU5();
afx_msg void OnKillfocusU6();
afx_msg void OnKillfocusU7();
afx_msg void OnKillfocusU8();
afx_msg void OnKillfocusU9();
afx_msg void OnKillfocusU10();
afx_msg void OnKillfocusU11();
afx_msg void OnKillfocusU12();
afx_msg void OnKillfocusU20();
afx_msg void OnKillfocusU21();
afx_msg void OnKillfocusU22();
afx_msg void OnKillfocusU23();
afx_msg void OnKillfocusU24();
afx_msg void OnKillfocusU25();
afx_msg void OnKillfocusU26();
afx_msg void OnKillfocusU27();
afx_msg void OnClearall();
afx_msg void OnKillfocusU15();
afx_msg void OnKillfocusU14();
afx_msg void OnKillfocusU28();
afx_msg void OnKillfocusU16();
afx_msg void OnKillfocusU17();
afx_msg void OnKillfocusU18();
afx_msg void OnKillfocusU19();
afx_msg void OnKillfocusU29();
afx_msg void OnKillfocusU30();
afx_msg void OnKillfocusReputation();
afx_msg void OnTorment();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CCreatureItem dialog
class CCreatureItem : public CPropertyPage
{
DECLARE_DYNCREATE(CCreatureItem)
// Construction
public:
CCreatureItem();
~CCreatureItem();
void RefreshItem();
// Dialog Data
//{{AFX_DATA(CCreatureItem)
enum { IDD = IDD_CREATUREITEMS };
CComboBox m_bookpicker;
CComboBox m_spellpicker;
CComboBox m_levelpicker;
CStatic m_invicon;
CComboBox m_slotpicker;
CString m_itemres;
CString m_maxspell;
CString m_maxslot;
CString m_spellres;
CString m_spellres2;
//}}AFX_DATA
int m_idx;
int m_spellslot;
HBITMAP m_hb;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCreatureItem)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
void RefreshSpellPicker(int pos);
CIntMapString *GetIWD2SpellList(int pos);
CString ResolveIWD2SpellResRef(int spid, int pos);
int ResolveIWD2SpellID(CString resref, int pos);
int ResolveTypeAndLevel(CString key);
CString ResolveSpellName(CString key);
int AddBook(int level, int type);
void AddIWD2Spell(CString spellres);
void AddSpell(int slot, CString spellres);
void RemoveSpell(int slot);
int CalculateIWD2Slots();
int SetMemoryByClass(CString daname, int type, int level);
// Generated message map functions
//{{AFX_MSG(CCreatureItem)
virtual BOOL OnInitDialog();
afx_msg void OnKillfocusSlotpicker();
afx_msg void OnSelchangeSlotpicker();
afx_msg void OnBrowse();
afx_msg void OnKillfocusItemres();
afx_msg void OnKillfocusUse1();
afx_msg void OnKillfocusUse2();
afx_msg void OnKillfocusUse3();
afx_msg void OnKillfocusFlags();
afx_msg void OnIdentified();
afx_msg void OnNosteal();
afx_msg void OnStolen();
afx_msg void OnKillfocusUnknown();
afx_msg void OnKillfocusLevelslot();
afx_msg void OnSelchangeLevelslot();
afx_msg void OnClear();
afx_msg void OnKillfocusLevel();
afx_msg void OnKillfocusMin();
afx_msg void OnKillfocusMax();
afx_msg void OnAdd();
afx_msg void OnBrowse2();
afx_msg void OnKillfocusSpellpicker();
afx_msg void OnSelchangeSpellpicker();
afx_msg void OnKillfocusSpelltype();
afx_msg void OnDelslot();
afx_msg void OnAddslot();
afx_msg void OnKillfocusBookpicker();
afx_msg void OnSelchangeBookpicker();
afx_msg void OnKillfocusSpellres2();
afx_msg void OnBrowse3();
afx_msg void OnMemorise();
afx_msg void OnRemove();
afx_msg void OnKillfocusSpelltype2();
afx_msg void OnKillfocusLevel2();
afx_msg void OnBook();
afx_msg void OnForget();
afx_msg void OnBook2();
afx_msg void OnClass();
afx_msg void OnKillfocusSelected();
afx_msg void OnUndroppable();
afx_msg void OnClearall();
afx_msg void OnMemorised();
afx_msg void OnDefaultKillfocus();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CCreatureEffect dialog
class CCreatureEffect : public CPropertyPage
{
DECLARE_DYNCREATE(CCreatureEffect)
// Construction
public:
CCreatureEffect();
~CCreatureEffect();
void RefreshEffect();
// Dialog Data
//{{AFX_DATA(CCreatureEffect)
enum { IDD = IDD_CREATUREEFF };
CListBox m_slotpicker_control;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCreatureEffect)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
// Generated message map functions
//{{AFX_MSG(CCreatureEffect)
virtual BOOL OnInitDialog();
afx_msg void OnAdd();
afx_msg void OnDelete();
afx_msg void OnEdit();
afx_msg void OnKillfocusSlotpicker();
afx_msg void OnV10();
afx_msg void OnV20();
afx_msg void OnPaste();
afx_msg void OnCopy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CCreaturePropertySheet
class CCreaturePropertySheet : public CPropertySheet
{
DECLARE_DYNAMIC(CCreaturePropertySheet)
// Construction
public:
CCreaturePropertySheet(CWnd* pWndParent = NULL);
// Attributes
public:
CCreatureGeneral m_PageGeneral;
CCreatureIcons m_PageIcons;
CCreatureSkills m_PageSkills;
CCreatureResist m_PageResist;
CCreatureStrings m_PageStrings;
CCreatureItem m_PageItem;
CCreatureEffect m_PageEffect;
CCreatureUnknown m_PageUnknown;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCreaturePropertySheet)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CCreaturePropertySheet();
void RefreshDialog();
protected:
// Generated message map functions
//{{AFX_MSG(CCreaturePropertySheet)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CREATUREGENERAL_H__A0634BD1_B659_442E_BD5B_D5F6F56A742B__INCLUDED_)