MIsSelectable::MIsSelectable() { IMessage(); _type = "MIsSelectable"; } // MIsSelectable
MSetPlayerState::MSetPlayerState() { IMessage(); _type = "MSetPlayerState"; } // MSpawnEnemy
MEmplaceBuilding::MEmplaceBuilding() { IMessage(); _type = "MEmplaceBuilding"; } // MEmplaceBuilding
MEntityDeathListener::MEntityDeathListener() { IMessage(); _type = "MEntityDeathListener"; } // MAddDeathListener
MHealed::MHealed() { IMessage(); _type = "MHealed"; } // MHealed
MSelectable::MSelectable() { IMessage(); _type = "MSelectable"; } // MSelectable
MEnemyCreated::MEnemyCreated() { IMessage(); _type = "MEnemyCreated"; } // MEntitySelected
MAvatarWalk::MAvatarWalk() { IMessage(); _type = "MAvatarWalk"; } // MAvatarWalk
MSwitch::MSwitch() { IMessage(); _type = "MSwitch"; } // MSwitch
MDisparosPotentes::MDisparosPotentes() { IMessage(); _position = NULL; _ordenDisparos = mostrarCono; _type = "MDisparosPotentes"; } // MDisparosPotentes
MDamaged::MDamaged() { IMessage(); _type = "MDamaged"; _damageAction = DamageMessage::DamageAction::DAMAGE; } // MDamaged
MActivarTiempoBala::MActivarTiempoBala() { IMessage(); _type = "MActivarTiempoBala"; _numEntities = 0; _entitiesID = NULL; }
int cPlugs::PlugOUT(int nr) { // if (Plug[nr].type & IMT_PROTOCOL) IMessage(IM_PLUG_PLUGOUT , NET_BROADCAST , IMT_ALL , Plug[nr].ID , 0 ); bool nofree = IMessageDirect(Plug[nr], IM_PLUG_DONTFREELIBRARY, 0, 0, 0); Plug[nr].running=false; IMessageDirect(Plug[nr],IM_PLUG_DEINIT , 0 , 0 , 0); if (!nofree) FreeLibrary((HMODULE)Plug[nr].hModule); delete Plug[nr].Ctrl; Plug[nr].Ctrl = 0; return 0; }
int CALLBACK PassDialogProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam) { sDIALOG_access * dlg; static char str_buff2 [MAX_STRBUFF]; bool login; switch (message) { case WM_INITDIALOG: SetWindowPos(hwnd , HWND_TOP , 0 , 0 , 0 , 0 , SWP_NOMOVE | SWP_NOSIZE); SetProp(hwnd , "DLG" , (void*)lParam); dlg = (sDIALOG_access*)lParam; SetWindowText(hwnd , dlg->title); SetDlgItemText(hwnd , IDC_STATIC , dlg->info); login = GetDlgItem(hwnd , IDC_LOGIN)!=0; if (login) { SetDlgItemText(hwnd , IDC_LOGIN , dlg->login); } SetDlgItemText(hwnd , IDC_PASS1 , dlg->pass); SetFocus(GetDlgItem(hwnd , login?IDC_LOGIN:IDC_PASS1)); ShowWindow(GetDlgItem(hwnd , IDC_PASS2) , dlg->flag & DFLAG_PASS2 ? SW_SHOW : SW_HIDE); // SetDlgItemText(hwnd , IDC_STATIC , dlg->info); CheckDlgButton(hwnd , IDC_CHECK , dlg->save?BST_CHECKED:BST_UNCHECKED); ShowWindow(GetDlgItem(hwnd , IDC_CHECK) , dlg->flag & DFLAG_SAVE ? SW_SHOW : SW_HIDE); break; case WM_CLOSE: EndDialog(hwnd, IDCANCEL); break; case WM_NCDESTROY: dlg=(sDIALOG_access*)GetProp(hwnd , "DLG"); RemoveProp(hwnd , "DLG"); break; case WM_COMMAND: dlg=(sDIALOG_access*)GetProp(hwnd , "DLG"); switch (LOWORD(wParam)) { case IDOK: login = GetDlgItem(hwnd , IDC_LOGIN)!=0; GetDlgItemText(hwnd , IDC_PASS1 , TLS().buff , MAX_STRING); if (login) { GetDlgItemText(hwnd , IDC_LOGIN , TLS().buff2 , MAX_STRING); dlg->login = TLS().buff2; } if (GetDlgItem(hwnd , IDC_PASS2) && IsWindowVisible(GetDlgItem(hwnd , IDC_PASS2))) { GetDlgItemText(hwnd , IDC_PASS2 , TLS().str.GetBuffer(MAX_STRBUFF) , MAX_STRBUFF); TLS().str.ReleaseBuffer(); if (TLS().str != TLS().buff) { IMessage(IMI_WARNING , 0 , 0 , (int)"Zrobi³eœ b³¹d przy potwierdzaniu has³a! \nWpisz w oba pola TO SAMO has³o!"); break; } } dlg->pass = TLS().buff; dlg->save = IsDlgButtonChecked(hwnd , IDC_CHECK)==BST_CHECKED; // Fall through. case IDCANCEL: EndDialog(hwnd, wParam); return TRUE; } } return 0; }
MSetEmpujarPropiedades::MSetEmpujarPropiedades() { IMessage(); _type = "MSetEmpujarPropiedades"; }
MSetRealTime::MSetRealTime() { IMessage(); _type = "MSetRealTime"; }