Files
fs2open.github.com/code/fred2/restrictpaths.h
T
2006-05-30 06:01:05 +00:00

79 lines
1.6 KiB
C++

/*
* Created by Ian "Goober5000" Warfield for the FreeSpace2 Source Code Project.
* You may not sell or otherwise commercially exploit the source or things you
* create based on the source.
*/
/*
* $Logfile: /Freespace2/code/FRED2/RestrictPaths.h $
* $Revision: 1.2 $
* $Date: 2006-05-30 06:01:05 $
* $Author: Goober5000 $
*
* Code for restricting arrival/departure to specific bays
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2006/05/30 05:58:59 Goober5000
* I should probably add these files too
* --Goober5000
*
* $NoKeywords: $
*/
#include "model/model.h"
#include "parse/parselo.h"
/////////////////////////////////////////////////////////////////////////////
// restrict_paths dialog
class restrict_paths : public CDialog
{
// Construction
public:
restrict_paths(CWnd* pParent = NULL); // standard constructor
// parameters for the dialog
int m_ship_class;
bool m_arrival;
// Dialog Data
//{{AFX_DATA(restrict_paths)
enum { IDD = IDD_RESTRICT_PATHS };
CCheckListBox m_path_list;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(restrict_paths)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(restrict_paths)
virtual BOOL OnInitDialog();
void OnCancel();
void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
// model info
polymodel *m_model;
int m_num_paths;
// data for check box list
struct {
char name[MAX_NAME_LEN];
bool allowed;
} m_ship_bay_data[MAX_SHIP_BAY_PATHS];
// regenerate all controls
void reset_controls();
};