这篇教程C++ GetMine函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetMine函数的典型用法代码示例。如果您正苦于以下问题:C++ GetMine函数的具体用法?C++ GetMine怎么用?C++ GetMine使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetMine函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: EnableControlsvoid CReactorTool::Refresh (){ if (!m_bInited) return; if (!GetMine ()) return; EnableControls (file_type != RDL_FILE); m_pTrigger = GetMine ()->CCTriggers (m_nTrigger); m_nCountDown = m_mine->ReactorTime (); m_nSecretReturn = m_mine->SecretCubeNum (); InitLBTargets (); OnSetTarget (); UpdateData (FALSE);}
开发者ID:paud,项目名称:d2x-xl,代码行数:14,
示例2: OnSidevoid CCubeTool::OnSide (int nSide){if (!GetMine ()) return;m_mine->Current ()->side = m_nSide = nSide;theApp.MineView ()->Refresh ();}
开发者ID:paud,项目名称:d2x-xl,代码行数:7,
示例3: OnDeleteWallAllvoid CWallTool::OnDeleteWallAll () {if (!GetMine ()) return;bool bUndo = theApp.SetModified (TRUE);theApp.LockUndo ();theApp.MineView ()->DelayRefresh (true);CDSegment *seg = m_mine->Segments ();CDSide *side;bool bAll = (m_mine->MarkedSegmentCount (true) == 0);int i, j, nDeleted = 0;for (i = m_mine->SegCount (); i; i--, seg++) { side = seg->sides; for (j = 0; j < MAX_SIDES_PER_SEGMENT; j++, side++) { if (side->nWall >= MAX_WALLS) continue; if (bAll || m_mine->SideIsMarked (i, j)) { m_mine->DeleteWall (side->nWall); nDeleted++; } } }theApp.MineView ()->DelayRefresh (false);if (nDeleted) { theApp.UnlockUndo (); theApp.MineView ()->Refresh (); Refresh (); }else theApp.ResetModified (bUndo);}
开发者ID:paud,项目名称:d2x-xl,代码行数:31,
示例4: OnPointvoid CCubeTool::OnPoint (int nPoint){if (!GetMine ()) return;m_mine->Current ()->point = m_nPoint = nPoint;theApp.MineView ()->Refresh ();}
开发者ID:paud,项目名称:d2x-xl,代码行数:7,
示例5: OnAddCubevoid CCubeTool::OnAddCube () {if (!GetMine ()) return;m_mine->AddSegment ();theApp.MineView ()->Refresh ();}
开发者ID:paud,项目名称:d2x-xl,代码行数:7,
示例6: OnDeleteCubevoid CCubeTool::OnDeleteCube () {if (!GetMine ()) return;m_mine->DeleteSegment (m_mine->Current ()->segment);theApp.MineView ()->Refresh ();}
开发者ID:paud,项目名称:d2x-xl,代码行数:7,
示例7: OnSetCubevoid CCubeTool::OnSetCube () {if (!GetMine ()) return;m_mine->Current ()->segment = CBCubeNo ()->GetCurSel ();theApp.MineView ()->Refresh ();}
开发者ID:paud,项目名称:d2x-xl,代码行数:7,
示例8: OnSaveTexturevoid CTextureTool::OnSaveTexture () {if (!GetMine ()) return; HINSTANCE hInst = AfxGetApp()->m_hInstance; char t1Name [20], t2Name [20]; CDSide *side = m_mine->CurrSide (); CComboBox *pcb;save_texture1 = side->nBaseTex & 0x3fff;save_texture2 = side->nOvlTex & 0x3fff;int i;for (i = 0; i < 4; i++) save_uvls [i].l = side->uvls [i].l;//CBTexture1 ()->SelectString (-1, texture_name1);//CBTexture2 ()->SelectString (-1, texture_name2);pcb = CBTexture1 ();LoadString (hInst, texture_resource + pcb->GetItemData (pcb->GetCurSel ()), t1Name, sizeof (t1Name));pcb = CBTexture2 ();if (i = pcb->GetItemData (pcb->GetCurSel ())) LoadString (hInst, texture_resource + i, t2Name, sizeof (t2Name));else strcpy (t2Name, "(none)");sprintf(m_szTextureBuf ,"%s,%s", t1Name, t2Name);UpdateData (FALSE);//SaveTextureStatic->SetText(message);}
开发者ID:paud,项目名称:d2x-xl,代码行数:30,
示例9: DoDataExchangevoid CCubeTool::DoDataExchange (CDataExchange *pDX){if (!GetMine ()) return;DDX_CBIndex (pDX, IDC_CUBE_CUBENO, m_nCube);//DDX_CBIndex (pDX, IDC_CUBE_TYPE, m_nType);SelectItemData (CBType (), m_nType);DDX_Double (pDX, IDC_CUBE_LIGHT, m_nLight);DDX_Radio (pDX, IDC_CUBE_SIDE1, m_nSide);DDX_Radio (pDX, IDC_CUBE_POINT1, m_nPoint);for (int i = 0; i < 3; i++) { DDX_Double (pDX, IDC_CUBE_POINTX + i, m_nCoord [i]); if (m_nCoord [i] < -0x7fff) m_nCoord [i] = -0x7fff; else if (m_nCoord [i] > 0x7fff) m_nCoord [i] = 0x7fff;// DDV_MinMaxInt (pDX, (long) m_nCoord [i], -0x7fff, 0x7fff); }DDX_Check (pDX, IDC_CUBE_ENDOFEXIT, m_bEndOfExit);DDX_Check (pDX, IDC_CUBE_SETDEFTEXTURE, m_bSetDefTexture);++m_nOwner;DDX_CBIndex (pDX, IDC_CUBE_OWNER, m_nOwner);m_nOwner--;DDX_Text (pDX, IDC_CUBE_GROUP, m_nGroup);if (m_nGroup < -1) m_nGroup = -1;else if (m_nGroup > 127) m_nGroup = 127;//DDV_MinMaxInt (pDX, m_nGroup, -1, 127);}
开发者ID:paud,项目名称:d2x-xl,代码行数:31,
示例10: OnLightvoid CCubeTool::OnLight () {if (!GetMine ()) return;UpdateData (TRUE);m_mine->CurrSeg ()->static_light = (FIX) (m_nLight * 24 * 327.68);theApp.SetModified (TRUE);}
开发者ID:paud,项目名称:d2x-xl,代码行数:8,
示例11: OnAddEquipGenvoid CCubeTool::OnAddEquipGen (){if (!GetMine ()) return;m_mine->AddEquipMaker ();m_nLastCube = -1;Refresh ();}
开发者ID:paud,项目名称:d2x-xl,代码行数:8,
示例12: OnAddBotGenvoid CCubeTool::OnAddBotGen (){if (!GetMine ()) return;m_mine->AddRobotMaker ();m_nLastCube = -1;Refresh ();}
开发者ID:paud,项目名称:d2x-xl,代码行数:8,
示例13: OpenPlacestatic void OpenPlace(HANDLE hDlg,BoardParams *DlgParams,int row,int col,CHECK_OPEN_PLACE check){ FarDialogItem DialogItem; int color; if(row<0) return; if(col<0) return; if(row>=DlgParams->width) return; if(col>=DlgParams->height) return; Info.SendDlgMessage(hDlg,DM_GETDLGITEMSHORT,DlgParams->width*col+row,&DialogItem); if(GET_DATA_1(DialogItem)==STATE_CLOSE) { SET_DATA_1(DialogItem,STATE_OPEN); DialogItem.VBuf[1].Char=GetChar(GET_DATA_0(DialogItem),GET_DATA_1(DialogItem),&color); int bgcolor=GetBG(row,col,GET_DATA_1(DialogItem)); DialogItem.VBuf[0].Attributes.ForegroundColor=DialogItem.VBuf[1].Attributes.ForegroundColor=DialogItem.VBuf[2].Attributes.ForegroundColor=color; DialogItem.VBuf[0].Attributes.BackgroundColor=DialogItem.VBuf[1].Attributes.BackgroundColor=DialogItem.VBuf[2].Attributes.BackgroundColor=bgcolor; Info.SendDlgMessage(hDlg,DM_SETDLGITEMSHORT,DlgParams->width*col+row,&DialogItem); if(!GET_DATA_0(DialogItem)) { OpenPlace(hDlg,DlgParams,row-1,col-1,COP_NONE); OpenPlace(hDlg,DlgParams,row-1,col,COP_NONE); OpenPlace(hDlg,DlgParams,row-1,col+1,COP_NONE); OpenPlace(hDlg,DlgParams,row,col-1,COP_NONE); OpenPlace(hDlg,DlgParams,row,col+1,COP_NONE); OpenPlace(hDlg,DlgParams,row+1,col-1,COP_NONE); OpenPlace(hDlg,DlgParams,row+1,col,COP_NONE); OpenPlace(hDlg,DlgParams,row+1,col+1,COP_NONE); } if(check!=COP_NONE) CheckStop(hDlg,DlgParams,row,col); } else if(check==COP_CHECK_ALL&&GET_DATA_1(DialogItem)==STATE_OPEN&&GET_DATA_0(DialogItem)>0&&GET_DATA_0(DialogItem)<9) { int mines=0; mines+=GetMine(row-1,col-1,hDlg,DlgParams,true); mines+=GetMine(row-1,col,hDlg,DlgParams,true); mines+=GetMine(row-1,col+1,hDlg,DlgParams,true); mines+=GetMine(row,col-1,hDlg,DlgParams,true); mines+=GetMine(row,col+1,hDlg,DlgParams,true); mines+=GetMine(row+1,col-1,hDlg,DlgParams,true); mines+=GetMine(row+1,col,hDlg,DlgParams,true); mines+=GetMine(row+1,col+1,hDlg,DlgParams,true); if(mines==GET_DATA_0(DialogItem)) //FIXME { OpenPlace(hDlg,DlgParams,row-1,col-1,COP_CHECK_STOP); OpenPlace(hDlg,DlgParams,row-1,col,COP_CHECK_STOP); OpenPlace(hDlg,DlgParams,row-1,col+1,COP_CHECK_STOP); OpenPlace(hDlg,DlgParams,row,col-1,COP_CHECK_STOP); OpenPlace(hDlg,DlgParams,row,col+1,COP_CHECK_STOP); OpenPlace(hDlg,DlgParams,row+1,col-1,COP_CHECK_STOP); OpenPlace(hDlg,DlgParams,row+1,col,COP_CHECK_STOP); OpenPlace(hDlg,DlgParams,row+1,col+1,COP_CHECK_STOP); CheckStop(hDlg,DlgParams,row,col); } }}
开发者ID:Maximus5,项目名称:evil-programmers,代码行数:55,
示例14: GetAdjacentSidebool CTextureTool::GetAdjacentSide (INT16 start_segment, INT16 start_side, INT16 linenum, INT16 *adj_segnum, INT16 *adj_sidenum) {if (!GetMine ()) return false; CDSegment *seg; INT16 sidenum,childnum; INT16 point0,point1,vert0,vert1; INT16 childs_side,childs_line; INT16 childs_point0,childs_point1,childs_vert0,childs_vert1; int side_child[6][4] = { {4,3,5,1}, {2,4,0,5}, {5,3,4,1}, {0,4,2,5}, {2,3,0,1}, {0,3,2,1} }; // figure out which side of child shares two points w/ start_side // find vert numbers for the line's two end pointspoint0 = line_vert[side_line[start_side][linenum]][0];point1 = line_vert[side_line[start_side][linenum]][1];seg = m_mine->Segments () + start_segment;vert0 = seg->verts[point0];vert1 = seg->verts[point1];sidenum = side_child[start_side][linenum];childnum = seg->children[sidenum];if (childnum < 0 || childnum >= m_mine->SegCount ()) return false;for (childs_side=0;childs_side<6;childs_side++) { seg = m_mine->Segments () + childnum; if ((seg->children[childs_side] == -1) || (seg->sides[childs_side].nWall < m_mine->GameInfo ().walls.count)) { for (childs_line=0;childs_line<4;childs_line++) { // find vert numbers for the line's two end points childs_point0 = line_vert[side_line[childs_side][childs_line]][0]; childs_point1 = line_vert[side_line[childs_side][childs_line]][1]; childs_vert0 = seg->verts[childs_point0]; childs_vert1 = seg->verts[childs_point1]; // if points of child's line == corresponding points of parent if (childs_vert0 == vert1 && childs_vert1 == vert0 || childs_vert0 == vert0 && childs_vert1 == vert1) { // now we know the child's side & line which touches the parent // child: childnum, childs_side, childs_line, childs_point0, childs_point1 // parent: start_segment, start_side, linenum, point0, point1 *adj_segnum = childnum; *adj_sidenum = childs_side; return true; } } } }return false;}
开发者ID:paud,项目名称:d2x-xl,代码行数:57,
示例15: OnDeleteObjvoid CCubeTool::OnDeleteObj () {if (!GetMine ()) return;CDSegment *seg = m_mine->CurrSeg ();if (IsBotMaker (seg)) DeleteBot ();else if (IsEquipMaker (seg)) DeleteEquip ();}
开发者ID:paud,项目名称:d2x-xl,代码行数:10,
示例16: OnAddWallvoid CWallTool::OnAddWall (){if (!GetMine ()) return;CDWall *wall;CDSegment *seg [2];CDSide *side [2];INT16 segnum [2]; INT16 sidenum [2];bool bRefresh = false;m_bDelayRefresh = true;seg [0] = m_mine->CurrSeg ();side [0] = m_mine->CurrSide ();segnum [0] = m_mine->Current ()->segment;sidenum [0] = m_mine->Current ()->side;if (m_mine->GetOppositeSide (segnum [1], sidenum [1], segnum [0], sidenum [0])) { seg [1] = m_mine->Segments (segnum [1]); side [1] = seg [1]->sides + sidenum [1]; }for (BOOL bSide = FALSE; bSide <= m_bBothSides; bSide++) if (side [bSide]->nWall < m_mine->GameInfo ().walls.count) ErrorMsg ("There is already a wall at that side of the current cube."); else if (m_mine->GameInfo ().walls.count >= MAX_WALLS) ErrorMsg ("The maximum number of walls is already reached."); else { if ((file_type != RDL_FILE) && (seg [bSide]->children [sidenum [bSide]] == -1)) m_mine->AddWall (-1, -1, WALL_OVERLAY, 0, KEY_NONE, -2, m_defOvlTexture); else if (wall = m_mine->AddWall (segnum [bSide], sidenum [bSide], m_defWall.type, m_defWall.flags, m_defWall.keys, m_defWall.clip_num, m_defTexture)) { if (wall->type == m_defWall.type) { wall->hps = m_defWall.hps; wall->cloak_value = m_defWall.cloak_value; } else if (wall->type == WALL_CLOAKED) { wall->hps = 0; wall->cloak_value = 16; } else { wall->hps = 0; wall->cloak_value = 31; } } // update main window bRefresh = true; }m_bDelayRefresh = false;if (bRefresh) { theApp.MineView ()->Refresh (); Refresh (); }}
开发者ID:paud,项目名称:d2x-xl,代码行数:55,
示例17: InitCBWallNovoid CWallTool::InitCBWallNo (){if (!GetMine ()) return;CComboBox *pcb = CBWallNo ();pcb->ResetContent ();int i;for (i = 0; i < m_mine->GameInfo ().walls.count; i++) pcb->AddString (itoa (i, message, 10));pcb->SetCurSel (m_nWall [0]);}
开发者ID:paud,项目名称:d2x-xl,代码行数:11,
示例18: OnAddTargetvoid CReactorTool::OnAddTarget (){ if (!GetMine ()) return; int segnum, sidenum; UpdateData (TRUE); sscanf (m_szTarget, "%d,%d", &segnum, &sidenum); if ((segnum < 0) || (segnum >= m_mine->SegCount ()) || (sidenum < 1) || (sidenum > 6)) return; AddTarget (segnum, sidenum);}
开发者ID:paud,项目名称:d2x-xl,代码行数:11,
示例19: OnAddWallTargetvoid CReactorTool::OnAddWallTarget (){ if (!GetMine ()) return; CDSelection *other = (m_mine->Current () == &m_mine->Current1 ()) ? &m_mine->Current2 () : &m_mine->Current1 (); int i = FindTarget (other->segment, other->side); if (i < 0) return; LBTargets ()->SetCurSel (i); OnAddTarget ();}
开发者ID:paud,项目名称:d2x-xl,代码行数:11,
示例20: OnResetCoordvoid CCubeTool::OnResetCoord (){if (!GetMine ()) return;m_nVertex = m_mine->CurrSeg ()->verts[side_vert[m_mine->Current ()->side][m_mine->Current ()->point]];m_nCoord [0] = (double) m_mine->Vertices (m_nVertex)->x / 0x10000L;m_nCoord [1] = (double) m_mine->Vertices (m_nVertex)->y / 0x10000L;m_nCoord [2] = (double) m_mine->Vertices (m_nVertex)->z / 0x10000L;UpdateData (FALSE);theApp.MineView ()->Refresh (false);}
开发者ID:paud,项目名称:d2x-xl,代码行数:11,
示例21: OnCountDownvoid CReactorTool::OnCountDown (){ if (!GetMine ()) return; char szVal [5]; ::GetWindowText (GetDlgItem (IDC_REACTOR_COUNTDOWN)->m_hWnd, szVal, sizeof(szVal)); if (!*szVal) return; UpdateData (TRUE); theApp.SetModified (TRUE); m_mine->ReactorTime () = m_nCountDown;}
开发者ID:paud,项目名称:d2x-xl,代码行数:12,
示例22: OnSecretReturnvoid CReactorTool::OnSecretReturn (){ if (!GetMine ()) return; char szVal [5]; ::GetWindowText (GetDlgItem (IDC_REACTOR_SECRETRETURN)->m_hWnd, szVal, sizeof(szVal)); if (!*szVal) return; UpdateData (TRUE); theApp.SetModified (TRUE); m_mine->SecretCubeNum () = m_nSecretReturn;}
开发者ID:paud,项目名称:d2x-xl,代码行数:12,
示例23: PasteTexturevoid CTextureTool::PasteTexture (INT16 segnum, INT16 sidenum, INT16 nDepth) {if (nDepth <= 0) return;if (!GetMine ()) return; CDSegment *seg = m_mine->Segments (segnum); CDSide *side = seg->sides + sidenum; INT16 old_texture1, old_texture2; int i;// remember these texture for a comparison belowold_texture1 = side->nBaseTex;old_texture2 = side->nOvlTex;if ((old_texture1 < 0) || (old_texture1 >= MAX_TEXTURES)) old_texture1 = 0;if ((old_texture2 < 0) || (old_texture2 >= MAX_TEXTURES)) old_texture2 = 0;// mark segment as "pasted"seg->seg_number = 1;// paste texturem_mine->SetTexture (segnum, sidenum, m_bUse1st ? save_texture1 : -1, m_bUse2nd ? save_texture2 : -1);for (i = 0; i < 4; i++) side->uvls [i].l = save_uvls [i].l;// now check each adjing side to see it has the same texturefor (i = 0; i < 4; i++) { INT16 adj_segnum, adj_sidenum; if (GetAdjacentSide (segnum, sidenum, i, &adj_segnum, &adj_sidenum)) { // if adj matches and its not "pasted" yet seg = m_mine->Segments (adj_segnum); side = seg->sides + adj_sidenum;#if 0 if (seg->seg_number) continue; if (m_bUse1st && (side->nBaseTex != old_texture1)) continue; if (m_bUse2nd && (side->nOvlTex != old_texture2)) continue; PasteTexture (adj_segnum, adj_sidenum, --nDepth);#else if ((seg->seg_number == 0) && (!m_bUse1st || (side->nBaseTex == old_texture1)) && (!m_bUse2nd || (side->nOvlTex == old_texture2))) { PasteTexture (adj_segnum, adj_sidenum, --nDepth); }#endif } }}
开发者ID:paud,项目名称:d2x-xl,代码行数:53,
示例24: OnSetCoordvoid CCubeTool::OnSetCoord (){if (!GetMine ()) return;UpdateData (TRUE);theApp.SetModified (TRUE);m_nVertex = m_mine->CurrSeg ()->verts[side_vert[m_mine->Current ()->side][m_mine->Current ()->point]];m_mine->Vertices (m_nVertex)->x = (FIX) (m_nCoord [0] * 0x10000L);m_mine->Vertices (m_nVertex)->y = (FIX) (m_nCoord [1] * 0x10000L);m_mine->Vertices (m_nVertex)->z = (FIX) (m_nCoord [2] * 0x10000L);theApp.MineView ()->Refresh (false);}
开发者ID:paud,项目名称:d2x-xl,代码行数:12,
示例25: CDWall *CWallTool::GetOtherWall (void){if (!GetMine ()) return m_pWall [1] = NULL;INT16 opp_segnum, opp_sidenum;if (!m_mine->GetOppositeSide (opp_segnum, opp_sidenum)) return m_pWall [1] = NULL;m_nWall [1] = m_mine->Segments (opp_segnum)->sides [opp_sidenum].nWall;return m_pWall [1] = (m_nWall [1] < m_mine->GameInfo ().walls.count ? m_mine->Walls (m_nWall [1]) : NULL);}
开发者ID:paud,项目名称:d2x-xl,代码行数:12,
示例26: strcpyvoid CPrefsDlg::SetAppSettings (bool bInitApp){ if (m_bInvalid) return; if (strcmp (descent_path, strlwr (m_d1Path))) { strcpy (descent_path, m_d1Path); WritePrivateProfileString ("DLE-XP", "DescentDirectory", descent_path, "dle-xp.ini"); if (file_type == RDL_FILE) FreeTextureHandles(); } if (strcmp(descent2_path, strlwr (m_d2Path))) { bool bChangePig = true; if (HasCustomTextures() && (QueryMsg ("Changing the pig file will affect the custom textures/n" "in this level because of the change in palette./n" "(Reload the level to fix custom texture appeareance.)/n/n" "Are you sure you want to do this?") != IDOK)) bChangePig = false; if (bChangePig) { strcpy (descent2_path, m_d2Path); WritePrivateProfileString ("DLE-XP", "Descent2Directory", descent2_path, "dle-xp.ini"); if (file_type == RL2_FILE) FreeTextureHandles (false); GetMine ()->LoadPalette (); theApp.MineView ()->ResetView (true); } } if (strcmp (levels_path, strlwr (m_missionsPath))) { strcpy (levels_path, m_missionsPath); WritePrivateProfileString ("DLE-XP", "levelsDirectory", levels_path, "dle-xp.ini"); } if (!bInitApp) theApp.MineView ()->DelayRefresh (true); theApp.MineView ()->m_nViewDist = m_nViewDist; theApp.MineView ()->SetViewMineFlags (m_mineViewFlags); theApp.MineView ()->SetViewObjectFlags (m_objViewFlags); theApp.TextureView ()->SetViewFlags (m_texViewFlags); depth_perception = m_depthPerceptions [m_iDepthPerception]; theApp.MineView ()->DepthPerception () = depth_perception; *(theApp.MineView ()->MineCenter ()) = m_nMineCenter; if (!bInitApp) { theApp.MineView ()->DelayRefresh (false); theApp.MineView ()->Refresh (false); } angle_rate = m_rotateRates [m_iRotateRate]; move_rate = (long) (m_moveRate * 0x10000L); bExpertMode = (m_bExpertMode != 0); theApp.GetMine ()->UseTexColors () = m_bUseTexColors != 0; if (!bInitApp) SaveAppSettings (false); theApp.m_bSplashScreen = m_bSplashScreen; theApp.m_undoList.SetMaxSize (m_nMaxUndo);}
开发者ID:paud,项目名称:d2x-xl,代码行数:53,
示例27: OnDeleteWallTargetvoid CReactorTool::OnDeleteWallTarget (){ if (!GetMine ()) return; CDSelection *other = (m_mine->Current () == &m_mine->Current1 ()) ? &m_mine->Current2 () : &m_mine->Current1 (); int i = FindTarget (other->segment, other->side); if (i < 0) { DEBUGMSG (" Reactor tool: Trigger doesn't target other cube's current side."); return; } LBTargets ()->SetCurSel (i); OnDeleteTarget ();}
开发者ID:paud,项目名称:d2x-xl,代码行数:13,
示例28: InitCBCubeNovoid CCubeTool::InitCBCubeNo (){if (!GetMine ()) return;CComboBox *pcb = CBCubeNo ();if (m_mine->SegCount () != pcb->GetCount ()) { pcb->ResetContent (); int i; for (i = 0; i < m_mine->SegCount (); i++) pcb->AddString (itoa (i, message, 10)); }pcb->SetCurSel (m_nCube);}
开发者ID:paud,项目名称:d2x-xl,代码行数:13,
示例29: OnSetLightvoid CTextureTool::OnSetLight () {if (!GetMine ()) return;UpdateData (TRUE);CDSide *side = m_mine->CurrSide ();INT16 mode = side->nOvlTex & 0xc000;int i, j;for (i = 0; i < 4; i++) { j = (i + lightIdxFromMode [mode / 0x4000]) % 4; side->uvls [i].l = (UINT16) (m_lights [j] * 327.68); }theApp.MineView ()->Refresh ();}
开发者ID:paud,项目名称:d2x-xl,代码行数:14,
示例30: MineViewvoid CMainFrame::OnConvert () { CConvertDlg d;if (file_type == RDL_FILE) { if (d.DoModal () == IDOK) { MineView ()->Refresh (); if (bExpertMode) INFOMSG (" Mine converted to a Descent 2 level") else ErrorMsg ("Mine converted to a Descent 2 level."); GetMine ()->ConvertWallNum (MAX_WALLS1 + 1, MAX_WALLS2 + 1); } }
开发者ID:paud,项目名称:d2x-xl,代码行数:14,
注:本文中的GetMine函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ GetMode函数代码示例 C++ GetMetrics函数代码示例 |