当前位置: 首页>>代码示例>>C++>>正文


C++ debug_log_entity_args函数代码示例

本文整理汇总了C++中debug_log_entity_args函数的典型用法代码示例。如果您正苦于以下问题:C++ debug_log_entity_args函数的具体用法?C++ debug_log_entity_args怎么用?C++ debug_log_entity_args使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了debug_log_entity_args函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: destroy_remote

static void destroy_remote (entity *en)
{
	#if DEBUG_MODULE

	debug_log_entity_args (ENTITY_DEBUG_REMOTE, ENTITY_DEBUG_DESTROY, en);

	#endif

	transmit_entity_comms_message (ENTITY_COMMS_DESTROY, en);
}
开发者ID:Comanche93,项目名称:eech,代码行数:10,代码来源:dv_dstry.c

示例2: set_remote_float_value

static void set_remote_float_value (entity *en, float_types type, float value)
{
	#if DEBUG_MODULE

	debug_log_entity_args (ENTITY_DEBUG_REMOTE, ENTITY_DEBUG_FLOAT_VALUE, en, type, value);

	#endif

	transmit_entity_comms_message (ENTITY_COMMS_FLOAT_VALUE, en, type, value);
}
开发者ID:Comanche93,项目名称:eech,代码行数:10,代码来源:hc_float.c

示例3: destroy_client_family

static void destroy_client_family (entity *en)
{
	#if DEBUG_MODULE >= 2

	debug_log_entity_args (ENTITY_DEBUG_REMOTE, ENTITY_DEBUG_DESTROY_FAMILY, en);

	#endif

	transmit_entity_comms_message (ENTITY_COMMS_DESTROY_FAMILY, en);
}
开发者ID:Comanche93,项目名称:eech,代码行数:10,代码来源:aa_dstry.c

示例4: kill_remote

static void kill_remote (entity *en)
{
	#if DEBUG_MODULE >= 2

	debug_log_entity_args (ENTITY_DEBUG_REMOTE, ENTITY_DEBUG_kill, en);

	#endif

	transmit_entity_comms_message (ENTITY_COMMS_KILL, en);
}
开发者ID:Comanche93,项目名称:eech,代码行数:10,代码来源:aa_dstry.c

示例5: destroy_local

static void destroy_local (entity *en)
{
	regen
		*raw;

	////////////////////////////////////////
	//
	// PRE-AMBLE
	//
	////////////////////////////////////////

	#if DEBUG_MODULE

	debug_log_entity_args (ENTITY_DEBUG_LOCAL, ENTITY_DEBUG_DESTROY, en);

	#endif

	raw = (regen *) get_local_entity_data (en);

	////////////////////////////////////////
	//
	// VALIDATE
	//
	////////////////////////////////////////

	ASSERT (!raw->member_root.first_child);

	////////////////////////////////////////
	//
	// DESTROY COMPONENTS
	//
	////////////////////////////////////////

	////////////////////////////////////////
	//
	// UNLINK FROM SYSTEM
	//
	////////////////////////////////////////

	delete_local_entity_from_parents_child_list (en, LIST_TYPE_CURRENT_WAYPOINT);

	delete_local_entity_from_parents_child_list (en, LIST_TYPE_REGEN);

	delete_local_entity_from_parents_child_list (en, LIST_TYPE_UPDATE);

	////////////////////////////////////////
	//
	// FREE ENTITY DATA
	//
	////////////////////////////////////////

	free_mem (raw);

	set_free_entity (en);
}
开发者ID:Comanche93,项目名称:eech,代码行数:55,代码来源:rg_dstry.c

示例6: set_remote_string

static void set_remote_string (entity *en, string_types type, const char *s)
{
	ASSERT (s);

	#if DEBUG_MODULE

	debug_log_entity_args (ENTITY_DEBUG_REMOTE, ENTITY_DEBUG_STRING, en, type, s);

	#endif

	transmit_entity_comms_message (ENTITY_COMMS_STRING, en, type, s);
}
开发者ID:Comanche93,项目名称:eech,代码行数:12,代码来源:dv_str.c

示例7: destroy_local

static void destroy_local (entity *en)
{
	division
		*raw;

	////////////////////////////////////////
	//
	// PRE-AMBLE
	//
	////////////////////////////////////////

	#if DEBUG_MODULE

	debug_log_entity_args (ENTITY_DEBUG_LOCAL, ENTITY_DEBUG_DESTROY, en);

	#endif

	raw = (division *) get_local_entity_data (en);

	////////////////////////////////////////
	//
	// VALIDATE
	//
	////////////////////////////////////////

	////////////////////////////////////////
	//
	// DESTROY COMPONENTS
	//
	////////////////////////////////////////

	////////////////////////////////////////
	//
	// UNLINK FROM SYSTEM
	//
	////////////////////////////////////////

	unlink_local_entity_children (en, LIST_TYPE_DIVISION);

	delete_local_entity_from_parents_child_list (en, LIST_TYPE_DIVISION);

	delete_local_entity_from_parents_child_list (en, LIST_TYPE_DIVISION_HEADQUARTERS);

	////////////////////////////////////////
	//
	// FREE ENTITY DATA
	//
	////////////////////////////////////////

	free_mem (raw);

	set_free_entity (en);
}
开发者ID:Comanche93,项目名称:eech,代码行数:53,代码来源:dv_dstry.c

示例8: destroy_local

static void destroy_local (entity *en)
{
	sprite
		*raw;

	////////////////////////////////////////
	//
	// PRE-AMBLE
	//
	////////////////////////////////////////

	#if DEBUG_MODULE

	debug_log_entity_args (ENTITY_DEBUG_LOCAL, ENTITY_DEBUG_DESTROY, en);

	#endif

	raw = (sprite *) get_local_entity_data (en);

	////////////////////////////////////////
	//
	// VALIDATE
	//
	////////////////////////////////////////

	////////////////////////////////////////
	//
	// DESTROY COMPONENTS
	//
	////////////////////////////////////////

	////////////////////////////////////////
	//
	// UNLINK FROM SYSTEM
	//
	////////////////////////////////////////

	delete_local_entity_from_parents_child_list (en, LIST_TYPE_SECTOR);

	delete_local_entity_from_parents_child_list (en, LIST_TYPE_UPDATE);

	delete_local_entity_from_parents_child_list (en, LIST_TYPE_SPECIAL_EFFECT);

	////////////////////////////////////////
	//
	// FREE ENTITY DATA
	//
	////////////////////////////////////////

	free_mem (raw);

	set_free_entity (en);
}
开发者ID:Comanche93,项目名称:eech,代码行数:53,代码来源:sp_dstry.c

示例9: destroy_local

static void destroy_local (entity *en)
{
	bridge
		*raw;

	////////////////////////////////////////
	//
	// PRE-AMBLE
	//
	////////////////////////////////////////

	#if DEBUG_MODULE

	debug_log_entity_args (ENTITY_DEBUG_LOCAL, ENTITY_DEBUG_DESTROY, en);

	debug_log ("BR_DSTRY: destroying bridge %d", get_local_entity_index (en));

	#endif

	raw = get_local_entity_data (en);

	////////////////////////////////////////
	//
	// VALIDATE
	//
	////////////////////////////////////////

	////////////////////////////////////////
	//
	// DESTROY COMPONENTS
	//
	////////////////////////////////////////

	////////////////////////////////////////
	//
	// UNLINK FROM SYSTEM
	//
	////////////////////////////////////////

	

	destroy_local_entity_children (en, LIST_TYPE_SEGMENT);

	////////////////////////////////////////
	//
	// FREE ENTITY DATA
	//
	////////////////////////////////////////

	free_mem (raw);

	set_free_entity (en);
}
开发者ID:DexterWard,项目名称:comanche,代码行数:53,代码来源:br_dstry.c

示例10: pack_entity_safe_index

void pack_entity_safe_index (int index)
{
	ASSERT ((index == ENTITY_INDEX_DONT_CARE) || ((index >= 0) && (index < number_of_entities)));

	#if (DEBUG_MODULE_PACK_ALL)

	debug_log_entity_args (ENTITY_DEBUG_PACK, ENTITY_DEBUG_ENTITY_INDEX, NULL, index);

	#endif

	pack_signed_data (index, NUM_ENTITY_INDEX_PACK_BITS);
}
开发者ID:Comanche93,项目名称:eech,代码行数:12,代码来源:en_heap.c

示例11: set_remote_vec3d

static void set_remote_vec3d (entity *en, vec3d_types type, vec3d *v)
{
	ASSERT (v);

	#if DEBUG_MODULE

	debug_log_entity_args (ENTITY_DEBUG_REMOTE, ENTITY_DEBUG_VEC3D, en, type, v);

	#endif

	transmit_entity_comms_message (ENTITY_COMMS_VEC3D, en, type, v);
}
开发者ID:Comanche93,项目名称:eech,代码行数:12,代码来源:gp_vec3d.c

示例12: set_local_raw_int_value

static void set_local_raw_int_value (entity *en, int_types type, int value)
{
	vehicle
		*raw;

	#if DEBUG_MODULE

	debug_log_entity_args (ENTITY_DEBUG_LOCAL, ENTITY_DEBUG_INT_VALUE, en, type, value);

	#endif

	raw = (vehicle *) get_local_entity_data (en);

	switch (type)
	{
		////////////////////////////////////////
		case INT_TYPE_OPERATIONAL_STATE:
		////////////////////////////////////////
		{

			raw->operational_state = value;

			break;
		}
		////////////////////////////////////////
		case INT_TYPE_SELECTED_WEAPON:
		////////////////////////////////////////
		{
			raw->selected_weapon = value;

			break;
		}
		////////////////////////////////////////
		case INT_TYPE_WEAPON_CONFIG_TYPE:
		////////////////////////////////////////
		{
			raw->weapon_config_type = (weapon_config_types) value;

			break;
		}
		////////////////////////////////////////
		default:
		////////////////////////////////////////
		{
			debug_fatal_invalid_int_type (en, type);

			break;
		}
	}
}
开发者ID:Comanche93,项目名称:eech,代码行数:50,代码来源:vh_int.c

示例13: validate_remote_create_entity_index

static entity *create_remote (entity_types type, int index, char *pargs)
{
	validate_remote_create_entity_index (index);

	#if DEBUG_MODULE

	debug_log_entity_args (ENTITY_DEBUG_REMOTE, ENTITY_DEBUG_CREATE, NULL, type, index);

	#endif

	transmit_entity_comms_message (ENTITY_COMMS_CREATE, NULL, type, index, pargs);

	return (NULL);
}
开发者ID:DexterWard,项目名称:comanche,代码行数:14,代码来源:rv_creat.c

示例14: set_local_float_value

static void set_local_float_value (entity *en, float_types type, float value)
{
	site_updatable
		*raw;

	#if DEBUG_MODULE

	debug_log_entity_args (ENTITY_DEBUG_LOCAL, ENTITY_DEBUG_FLOAT_VALUE, en, type, value);

	#endif

	raw = get_local_entity_data (en);

	switch (type)
	{
		////////////////////////////////////////
		case FLOAT_TYPE_LOADING_DOOR_STATE:
		////////////////////////////////////////
		{
			raw->loading_door_state = value;

			break;
		}
		////////////////////////////////////////
		case FLOAT_TYPE_RADAR_ROTATION_STATE:
		////////////////////////////////////////
		{
			raw->radar_rotation_state = value;

			break;
		}
		////////////////////////////////////////
		case FLOAT_TYPE_LOADING_DOOR_TIMER:
		////////////////////////////////////////
		{
			raw->loading_door_timer = value;

			break;
		}
		////////////////////////////////////////
		default:
		////////////////////////////////////////
		{
			debug_fatal_invalid_float_type (en, type);

			break;
		}
	}
}
开发者ID:DexterWard,项目名称:comanche,代码行数:49,代码来源:su_float.c

示例15: pack_entity_type

void pack_entity_type (entity_types type)
{
	ASSERT ((type >= 0) && (type < NUM_ENTITY_TYPES));

	#if (DEBUG_MODULE_PACK_ONE || DEBUG_MODULE_PACK_ALL)

	if (entity_type_database[type].debug_pack)
	{
		debug_log_entity_args (ENTITY_DEBUG_PACK, ENTITY_DEBUG_ENTITY_TYPE, NULL, type);
	}

	#endif

	pack_unsigned_data (type, NUM_ENTITY_TYPE_PACK_BITS);
}
开发者ID:DexterWard,项目名称:comanche,代码行数:15,代码来源:en_types.c


注:本文中的debug_log_entity_args函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。