Exemplo n.º 1
0
	bool TeamerInfo::UpdateStateByContainer()
	{
		if (NULL == m_pContainer)
		{
			setStateType(ERoleTeamStateSingle);
		}
		else if (m_pContainer->GetTeam()->GetTeamType() == EOrganizationGroup)
		{
			setStateType(ERoleTeamStateInGroup);
		}
		else
		{
			setStateType(ERoleTeamStateInTeam);
		}

		return false;//
	}
Exemplo n.º 2
0
      void
      ImageScene::typeSelected(int index)
      {
	auto type = getState().getType();
	if (index < 3) {
	  setStateType(ImageSceneState::State2dType);
	  Orientation ori = (index == 0 ? Frontal : (index == 1 ? Sagittal : Axial));
	  ((image_states::SingleSlice*) m_state.get())->setOrientation(ori);

	  if (m_res)
	    configSliceSelector();
	}
	else {
	  setStateType(ImageSceneState::State3dType);
	}

	if (getState().getType() != type)
	  m_state->imageChanged();
	// notify connected graphicViews for redraw
	for (auto it = m_connectedScenes.begin(), end = m_connectedScenes.end(); it != end; ++it) {
	  (*it)->update((*it)->sceneRect());
	}
      }
/**
* CAIStateGaseousFollow::CAIStateGaseousFollow
* @date Modified May 4, 2006
*/
CAIStateGaseousFollow::CAIStateGaseousFollow(void)
{
	setStateType(CAIState::AIS_GASEOUSFOLLOW);
	memset(&m_vVelocity, 0, sizeof(D3DXVECTOR3));
}
Exemplo n.º 4
0
/**
* CAIStatePathFollow::CAIStatePathFollow
* @date Modified March 27, 2006
*/
CAIStatePathFollow::CAIStatePathFollow(void)
{
	setStateType(CAIState::AIS_PATHFOLLOW);
	memset(&m_vVelocity, 0, sizeof(D3DXVECTOR3));
}
Exemplo n.º 5
0
/**
* CAIStateAcidicAttack::CAIStateAcidicAttack
* @date Modified April 7, 2006
*/
CAIStateAcidicAttack::CAIStateAcidicAttack(void)
{
	setStateType(CAIState::AIS_ACIDICATTACK);
}
Exemplo n.º 6
0
/**
* CAIStatePathPlan::CAIStatePathPlan
* @date Modified March 28, 2006
*/
CAIStatePathPlan::CAIStatePathPlan(void)
{
	setStateType(CAIState::AIS_PATHPLAN);

	m_poStartNode = new CAINode;
}
Exemplo n.º 7
0
/**
* CAIStateAcidicFollow::CAIStateAcidicFollow
* @date Modified April 12, 2006
*/
CAIStateAcidicFollow::CAIStateAcidicFollow(void)
{
	setStateType(CAIState::AIS_ACIDICFOLLOW);
	memset(&m_vVelocity, 0, sizeof(D3DXVECTOR3));
	m_poCurrentPos = new CAINode;
}
/**
* CAIStateQBRangeAttack::CAIStateQBRangeAttack
* @date Modified April 7, 2006
*/
CAIStateQBRangeAttack::CAIStateQBRangeAttack(void)
{
	setStateType(CAIState::AIS_QBRANGEATTACK);
}
Exemplo n.º 9
0
/**
* CAIStateMove::CAIStateMove
* @date Modified April 21, 2006
*/
CAIStateMove::CAIStateMove(void)
{
	setStateType(CAIState::AIS_FOLLOWLEADER);
	memset(&m_vVelocity, 0, sizeof(D3DXVECTOR3));
}
Exemplo n.º 10
0
/**
* CAIStateZombieAttack::CAIStateZombieAttack
* @date Modified April 7, 2006
*/
CAIStateZombieAttack::CAIStateZombieAttack(void)
{
	setStateType(CAIState::AIS_ZOMBIEATTACK);
}
Exemplo n.º 11
0
	void TeamerInfo::Reset()
	{
		m_pContainer = NULL;
		setStateType(ERoleTeamStateSingle);
	}