FS2_Open
Open source remastering of the Freespace 2 engine
shipgoalsdlg.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
9 
10 
11 
12 #include "Management.h"
13 
14 #ifndef _SHIPGOALSDLG_H
15 #define _SHIPGOALSDLG_H
16 
17 #define ED_MAX_GOALS 10
18 #define MAX_EDITOR_GOAL_PRIORITY 200
19 
21 // ShipGoalsDlg dialog
22 
23 class ShipGoalsDlg : public CDialog
24 {
25 // Construction
26 public:
27  int verify_orders(int ship = -1);
28  void initialize_multi();
29  void OnOK();
30  void update();
31  void initialize(ai_goal *goals, int ship = cur_ship);
32  ShipGoalsDlg(CWnd* pParent = NULL); // standard constructor
33 
41 
47 
48 // Dialog Data
49  //{{AFX_DATA(ShipGoalsDlg)
51  //}}AFX_DATA
52 
53 // Overrides
54  // ClassWizard generated virtual function overrides
55  //{{AFX_VIRTUAL(ShipGoalsDlg)
56  public:
57  virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
58  protected:
59  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
60  //}}AFX_VIRTUAL
61 
62 // Implementation
63 protected:
64 
65  // Generated message map functions
66  //{{AFX_MSG(ShipGoalsDlg)
67  virtual BOOL OnInitDialog();
68  afx_msg void OnSelchangeBehavior1();
69  afx_msg void OnSelchangeBehavior2();
70  afx_msg void OnSelchangeBehavior3();
71  afx_msg void OnSelchangeBehavior4();
72  afx_msg void OnSelchangeBehavior5();
73  afx_msg void OnSelchangeBehavior6();
74  afx_msg void OnSelchangeBehavior7();
75  afx_msg void OnSelchangeBehavior8();
76  afx_msg void OnSelchangeBehavior9();
77  afx_msg void OnSelchangeBehavior10();
78  afx_msg void OnSelchangeObject1();
79  afx_msg void OnSelchangeObject2();
80  afx_msg void OnSelchangeObject3();
81  afx_msg void OnSelchangeObject4();
82  afx_msg void OnSelchangeObject5();
83  afx_msg void OnSelchangeObject6();
84  afx_msg void OnSelchangeObject7();
85  afx_msg void OnSelchangeObject8();
86  afx_msg void OnSelchangeObject9();
87  afx_msg void OnSelchangeObject10();
88  //}}AFX_MSG
89  DECLARE_MESSAGE_MAP()
90 
91 private:
92  void set_item(int item, int init = 0);
93  void update_item(int item, int multi = 0);
94  void set_object(int item);
95 
96  ai_goal *goalp;
97 };
98 
99 extern char *goal_behaviors[];
100 
101 #endif
afx_msg void OnSelchangeObject10()
int m_subsys[ED_MAX_GOALS]
Definition: shipgoalsdlg.h:38
#define IDD_SHIP_GOALS_EDITOR
Definition: resource.h:26
CComboBox * m_subsys_box[ED_MAX_GOALS]
Definition: shipgoalsdlg.h:44
CComboBox * m_dock2_box[ED_MAX_GOALS]
Definition: shipgoalsdlg.h:45
int m_priority[ED_MAX_GOALS]
Definition: shipgoalsdlg.h:37
int m_data[ED_MAX_GOALS]
Definition: shipgoalsdlg.h:40
char * goal_behaviors[]
afx_msg void OnSelchangeObject2()
CComboBox * m_object_box[ED_MAX_GOALS]
Definition: shipgoalsdlg.h:43
afx_msg void OnSelchangeBehavior8()
afx_msg void OnSelchangeObject3()
afx_msg void OnSelchangeBehavior10()
ShipGoalsDlg(CWnd *pParent=NULL)
afx_msg void OnSelchangeBehavior6()
unsigned int UINT
Definition: config.h:82
#define ED_MAX_GOALS
Definition: shipgoalsdlg.h:17
afx_msg void OnSelchangeBehavior5()
afx_msg void OnSelchangeBehavior4()
int m_dock2[ED_MAX_GOALS]
Definition: shipgoalsdlg.h:39
afx_msg void OnSelchangeObject5()
afx_msg void OnSelchangeBehavior2()
afx_msg void OnSelchangeObject1()
afx_msg void OnSelchangeObject7()
afx_msg void OnSelchangeBehavior7()
afx_msg void OnSelchangeObject4()
Definition: ship.h:534
CComboBox * m_behavior_box[ED_MAX_GOALS]
Definition: shipgoalsdlg.h:42
unsigned long DWORD
Definition: config.h:90
CComboBox * m_priority_box[ED_MAX_GOALS]
Definition: shipgoalsdlg.h:46
afx_msg void OnSelchangeObject8()
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID, CCreateContext *pContext=NULL)
int BOOL
Definition: config.h:80
virtual void DoDataExchange(CDataExchange *pDX)
virtual BOOL OnInitDialog()
void initialize_multi()
afx_msg void OnSelchangeBehavior9()
afx_msg void OnSelchangeBehavior1()
int cur_ship
Definition: management.cpp:80
int m_behavior[ED_MAX_GOALS]
Definition: shipgoalsdlg.h:35
afx_msg void OnSelchangeBehavior3()
Definition: ai.h:134
int m_object[ED_MAX_GOALS]
Definition: shipgoalsdlg.h:36
afx_msg void OnSelchangeObject9()
afx_msg void OnSelchangeObject6()
int verify_orders(int ship=-1)
void initialize(ai_goal *goals, int ship=cur_ship)