Exemplo n.º 1
0
	MIsSelectable::MIsSelectable()
	{
		IMessage();

		_type = "MIsSelectable";
	
	} // MIsSelectable
Exemplo n.º 2
0
	MSetPlayerState::MSetPlayerState()
	{
		IMessage();

		_type = "MSetPlayerState";

	} // MSpawnEnemy
Exemplo n.º 3
0
	MEmplaceBuilding::MEmplaceBuilding()
	{
		IMessage();

		_type = "MEmplaceBuilding";

	} // MEmplaceBuilding
Exemplo n.º 4
0
	MEntityDeathListener::MEntityDeathListener()
	{
		IMessage();

		_type = "MEntityDeathListener";

	} // MAddDeathListener
Exemplo n.º 5
0
	MHealed::MHealed()
	{
		IMessage();

		_type = "MHealed";

	} // MHealed
Exemplo n.º 6
0
	MSelectable::MSelectable()
	{
		IMessage();

		_type = "MSelectable";
	
	} // MSelectable
Exemplo n.º 7
0
	MEnemyCreated::MEnemyCreated()
	{
		IMessage();

		_type = "MEnemyCreated";

	} // MEntitySelected
Exemplo n.º 8
0
	MAvatarWalk::MAvatarWalk()
	{
		IMessage();

		_type = "MAvatarWalk";

	} // MAvatarWalk
Exemplo n.º 9
0
	MSwitch::MSwitch()
	{
		IMessage();

		_type = "MSwitch";

	} // MSwitch
Exemplo n.º 10
0
	MDisparosPotentes::MDisparosPotentes()
	{
		IMessage();
		_position = NULL;
		_ordenDisparos = mostrarCono;
		_type = "MDisparosPotentes";
	
	} // MDisparosPotentes
Exemplo n.º 11
0
	MDamaged::MDamaged()
	{
		IMessage();

		_type = "MDamaged";
		
		_damageAction = DamageMessage::DamageAction::DAMAGE;

	} // MDamaged
Exemplo n.º 12
0
	MActivarTiempoBala::MActivarTiempoBala()
	{
		IMessage();
		_type = "MActivarTiempoBala";

		_numEntities = 0;

		_entitiesID = NULL;
	}
Exemplo n.º 13
0
	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;
	}
Exemplo n.º 14
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;
}
Exemplo n.º 15
0
	MSetEmpujarPropiedades::MSetEmpujarPropiedades()
	{
		IMessage();
		_type = "MSetEmpujarPropiedades";
	}
Exemplo n.º 16
0
	MSetRealTime::MSetRealTime()
	{
		IMessage();
		_type = "MSetRealTime";
	}