RefTargetHandle FormationBhvr::Clone(RemapDir& remap) { FormationBhvr* newformation = new FormationBhvr(); newformation->ReplaceReference(PBLK,pblock->Clone(remap)); return(newformation); }
RefTargetHandle FormationBhvr::Clone(RemapDir& remap) { FormationBhvr* newformation = new FormationBhvr(); newformation->ReplaceReference(PBLK,remap.CloneRef(pblock)); BaseClone(this, newformation, remap); return(newformation); }
void Set(PB2Value& v, ReferenceMaker* owner, ParamID id, int tabIndex, TimeValue t) { FormationBhvr *formbhvr = (FormationBhvr *) owner; formbhvr->pblock->ZeroCount(FormationBhvr::follower); INode *SurfNode = formbhvr->pblock->GetINode(FormationBhvr::follower_single); if (SurfNode) { formbhvr->pblock->Append(FormationBhvr::follower,1,&SurfNode); SurfNode->NotifyDependents(FOREVER, PART_DISPLAY, REFMSG_CHANGE); } formbhvr->SetFollowerNodeText(); }
INT_PTR DlgProc(TimeValue t, IParamMap2 *map, HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch (msg) { case WM_INITDIALOG: { FormationBhvr *formationBhvr = (FormationBhvr*)map->GetParamBlock()->GetOwner(); formationBhvr->InitDialog(hWnd); } break; case WM_DESTROY: { FormationBhvr *formationBhvr = (FormationBhvr*)map->GetParamBlock()->GetOwner(); ReleaseICustButton(formationBhvr->iMultPick); formationBhvr->iMultPick = NULL; } break; case WM_COMMAND: switch (LOWORD(wParam)) { //Select the formation that the delegates are currently in. case IDC_SETFORMATION: { FormationBhvr *formationBhvr = (FormationBhvr*)map->GetParamBlock()->GetOwner(); formationBhvr->SetFormation(t); } break; //Pick multiple followers case IDC_NAMESEL: { FormationBhvr *formationBhvr = (FormationBhvr*)map->GetParamBlock()->GetOwner(); formationBhvr->PickWhom(); formationBhvr->SetFollowerNodeText(); } break; } } return FALSE; }
void Set(PB2Value& v, ReferenceMaker* owner, ParamID id, int tabIndex, TimeValue t) { FormationBhvr *formbhvr = (FormationBhvr *) owner; formbhvr->SetLeaderNodeText(); }