6 #include "ShipSpecialHitpoints.h"
13 static char THIS_FILE[] = __FILE__;
30 CDialog::DoDataExchange(pDX);
35 DDV_MinMaxInt(pDX,
m_shields, -1, INT_MAX);
37 DDV_MinMaxInt(pDX,
m_hull, 1, INT_MAX);
46 ON_BN_CLICKED(
ID_OK, OnOk)
75 num_selected_ships = 0;
81 m_selected_ships[num_selected_ships] = objp->
instance;
88 Assert(num_selected_ships);
94 if (
Ships[m_ship_num].special_hitpoints) {
110 if (
Ships[m_ship_num].special_shield > 0){
127 CDialog::OnInitDialog();
151 float temp_max_hull_strength;
152 int new_shield_strength, new_hull_strength;
168 new_hull_strength =
m_hull;
176 new_hull_strength = 0;
197 new_shield_strength = -1;
200 for ( i=0; i<num_selected_ships; i++) {
206 if (
Ships[m_selected_ships[i]].special_hitpoints)
208 temp_max_hull_strength = (
float)
Ships[m_selected_ships[i]].special_hitpoints;
#define IDC_ENABLE_SPECIAL_HITPOINTS
#define IDC_SPECIAL_SHIELDS
virtual BOOL OnInitDialog()
ai_info Ai_info[MAX_AI_INFO]
#define END_OF_LIST(head)
virtual void DoDataExchange(CDataExchange *pDX)
BOOL m_special_hitpoints_enabled
#define IDC_ENABLE_SPECIAL_SHIELD
typedef int(SCP_EXT_CALLCONV *SCPDLL_PFVERSION)(SCPDLL_Version *)
ShipSpecialHitpoints(CWnd *pParent=NULL)
afx_msg void OnEnableSpecialShieldpoints()
float max_shield_strength
object Objects[MAX_OBJECTS]
BOOL m_special_shield_enabled
void set_modified(BOOL arg)
typedef float(SCP_EXT_CALLCONV *SCPTRACKIR_PFFLOATVOID)()
SCP_vector< ship_info > Ship_info