FS2_Open
Open source remastering of the Freespace 2 engine
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
awacs.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) Volition, Inc. 1999. All rights reserved.
3
*
4
* All source code herein is the property of Volition, Inc. You may not sell
5
* or otherwise commercially exploit the source or things you created based on the
6
* source.
7
*
8
*/
9
10
11
12
#ifndef __FS2_AWACS_HEADER_FILE
13
#define __FS2_AWACS_HEADER_FILE
14
15
// ----------------------------------------------------------------------------------------------------
16
// AWACS DEFINES/VARS
17
//
18
#include "
globalincs/globals.h
"
19
20
class
object
;
21
class
ship
;
22
23
// DAVE'S OFFICIAL DEFINITION OF AWACS
24
25
// total awacs levels for all teams
26
extern
float
Awacs_team
[
MAX_IFFS
];
// total AWACS capabilities for each team
27
extern
float
Awacs_level
;
// Awacs_friendly - Awacs_hostile
28
29
// ----------------------------------------------------------------------------------------------------
30
// AWACS FUNCTIONS
31
//
32
33
// call when initializing level, before parsing mission
34
void
awacs_level_init
();
35
36
// call every frame to process AWACS details
37
void
awacs_process
();
38
39
// get the total AWACS level for target to viewer
40
// < 0.0f : untargetable
41
// 0.0 - 1.0f : marginally targetable
42
// 1.0f : fully targetable as normal
43
float
awacs_get_level
(
object
*
target
,
ship
*viewer,
int
use_awacs=1);
44
45
// Determine if ship is visible by team
46
// return 1 if ship is fully visible
47
// return 0 if ship is only partly visible
48
int
ship_is_visible_by_team
(
object
*
target
,
ship
*viewer);
49
50
#endif
ship_is_visible_by_team
int ship_is_visible_by_team(object *target, ship *viewer)
Definition:
awacs.cpp:442
awacs_get_level
float awacs_get_level(object *target, ship *viewer, int use_awacs=1)
Definition:
awacs.cpp:168
awacs_process
void awacs_process()
Definition:
awacs.cpp:74
awacs_level_init
void awacs_level_init()
Definition:
awacs.cpp:67
globals.h
Awacs_team
float Awacs_team[MAX_IFFS]
Definition:
awacs.cpp:33
ship
Definition:
ship.h:534
object
Definition:
object.h:141
target
GLenum target
Definition:
Glext.h:6872
Awacs_level
float Awacs_level
Definition:
awacs.cpp:34
MAX_IFFS
#define MAX_IFFS
Definition:
globals.h:34
code
ship
awacs.h
Generated on Sun May 1 2016 16:23:31 for FS2_Open by
1.8.10