コード例 #1
0
ファイル: ai_goal.cpp プロジェクト: janisl/jlquake
void BotInterbreedGoalFuzzyLogic( int parent1, int parent2, int child ) {
	bot_goalstate_t* p1 = BotGoalStateFromHandle( parent1 );
	bot_goalstate_t* p2 = BotGoalStateFromHandle( parent2 );
	bot_goalstate_t* c = BotGoalStateFromHandle( child );

	InterbreedWeightConfigs( p1->itemweightconfig, p2->itemweightconfig,
		c->itemweightconfig );
}
コード例 #2
0
ファイル: be_ai_goal.c プロジェクト: JackalFrost/RTCW-WSGF
//===========================================================================
//
// Parameter:				-
// Returns:					-
// Changes Globals:		-
//===========================================================================
void BotInterbreedGoalFuzzyLogic( int parent1, int parent2, int child ) {
	bot_goalstate_t *p1, *p2, *c;

	p1 = BotGoalStateFromHandle( parent1 );
	p2 = BotGoalStateFromHandle( parent2 );
	c = BotGoalStateFromHandle( child );

	InterbreedWeightConfigs( p1->itemweightconfig, p2->itemweightconfig,
							 c->itemweightconfig );
} //end of the function BotInterbreedingGoalFuzzyLogic