File: simop.h

package info (click to toggle)
searchandrescue 0.8.2-10
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,656 kB
  • ctags: 6,111
  • sloc: ansic: 89,072; cpp: 7,691; sh: 90; makefile: 80
file content (68 lines) | stat: -rw-r--r-- 1,620 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
		SAR Simulation Operations and Procedures

	Most of these functions are procedures called by the front end
	functions in simmanage.c
 */

#ifndef SIMOP_H
#define SIMOP_H

#include "obj.h"
#include "sar.h"

extern float SARSimFindGround(
	sar_scene_struct *scene,
	sar_object_struct **ptr, int total,
	const sar_position_struct *pos  
);

extern int SARSimDoMortality(
	sar_core_struct *core_ptr, sar_object_struct *obj_ptr
);

extern int SARSimRestart(
	sar_core_struct *core_ptr, sar_scene_struct *scene,
	sar_object_struct ***ptr, int *total,
	int obj_num, sar_object_struct *obj_ptr
);

/* Stop smoke trail objects from respawning but do not delete them. */
#define SARSIM_DELETE_EFFECTS_SMOKE_STOP_RESPAWN	(1 << 2)
extern int SARSimDeleteEffects(
	sar_core_struct *core_ptr, sar_scene_struct *scene,
	sar_object_struct ***ptr, int *total,
	int obj_num,
	unsigned int filter_flags	/* Any of SARSIM_DELETE_EFFECTS_* */
);

extern void SARSimSetAircraftCrashed(
	sar_scene_struct *scene,
	sar_object_struct ***ptr, int *total,
	sar_object_struct *obj_ptr,
	sar_object_aircraft_struct *obj_aircraft_ptr
);

extern void SARSimSetSFMValues(
	sar_core_struct *core_ptr, sar_scene_struct *scene,
	sar_object_struct *obj_ptr
);
extern void SARSimGetSFMValues(
	sar_scene_struct *scene, sar_object_struct *obj_ptr
);

extern int SARSimApplyNaturalForce(
	sar_core_struct *core_ptr,
	sar_object_struct *obj_ptr
);
extern int SARSimApplyArtificialForce(
	sar_core_struct *core_ptr,
	sar_object_struct *obj_ptr
);

extern void SARSimApplyGCTL(
	sar_core_struct *core_ptr,
	sar_object_struct *obj_ptr
);

#endif	/* SIMOP_H */