Beispiel #1
0
IState* 
IState::clone() {

	IState *res = IState::create();
	res->copy(this);

	return res;
}
Beispiel #2
0
IState* 
IState::clone() {

	IState *res = IState::create();

	res->copy(this);

	//std::map< int, int>::iterator iterInt;
	//iterInt = m_IntProps.begin();
	//for ( ; iterInt != m_IntProps.end(); ++iterInt) {
	//
	//	res->m_IntProps[iterInt->first] = iterInt->second;
	//}

	//std::map< int, bool>::iterator iterBool;
	//iterBool = m_EnableProps.begin();
	//for ( ; iterBool != m_EnableProps.end(); ++iterBool) {
	//
	//	res->m_EnableProps[iterBool->first] = iterBool->second;
	//}

	//std::map< int, float>::iterator iterFloat;
	//iterFloat = m_FloatProps.begin();
	//for ( ; iterFloat != m_FloatProps.end(); ++iterFloat) {
	//
	//	res->m_FloatProps[iterFloat->first] = iterFloat->second;
	//}

	//std::map< int, vec4>::iterator iterVec4;
	//iterVec4 = m_Float4Props.begin();
	//for ( ; iterVec4 != m_Float4Props.end(); ++iterVec4) {
	//
	//	res->m_Float4Props[iterVec4->first] = iterVec4->second;
	//}

	//std::map< int, bvec4>::iterator iterBool4;
	//iterBool4 = m_Bool4Props.begin();
	//for ( ; iterBool4 != m_Bool4Props.end(); ++iterBool4) {
	//
	//	res->m_Bool4Props[iterBool4->first] = iterBool4->second;
	//}

	//iterInt = m_EnumProps.begin();
	//for ( ; iterInt != m_EnumProps.end(); ++iterInt) {
	//
	//	res->m_EnumProps[iterInt->first] = iterInt->second;
	//}
	return res;
}