]> icculus.org git repositories - taylor/freespace2.git/blob - include/hudets.h
fix issue with looping audio streams
[taylor/freespace2.git] / include / hudets.h
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
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/Hud/HUDets.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Header file that supports code to manage and display the Energy Transfer System (ETS)
16  *
17  * $Log$
18  * Revision 1.2  2002/06/09 04:41:13  relnev
19  * added copyright header
20  *
21  * Revision 1.1.1.1  2002/05/03 03:28:12  root
22  * Initial import.
23  *
24  * 
25  * 2     10/07/98 10:53a Dave
26  * Initial checkin.
27  * 
28  * 1     10/07/98 10:49a Dave
29  * 
30  * 7     8/11/97 10:51a Lawrance
31  * fix problem that was not setting correct weapon energy when
32  * change_ship_type() was called
33  * 
34  * 6     4/03/97 5:29p Mike
35  * 
36  * 5     2/25/97 4:12p Lawrance
37  * using frametime to calculate energy recharge
38  * 
39  * 4     1/01/97 7:34p Lawrance
40  * added cheat (Del+W) which keeps weapon energy at max levels.
41  * 
42  * 3     12/24/96 4:31p Lawrance
43  * refining energy transfer system
44  * 
45  * 2     12/22/96 3:41p Lawrance
46  * ETS system working
47  *
48  * $NoKeywords: $
49  */
50
51
52 #ifndef _HUD_ETS_H
53 #define _HUD_ETS_H
54
55 #include "object.h"
56
57 #define ETS_RECHARGE_RATE       4.0f                    //      Recharge this percent of total shields/second
58
59 extern float Energy_levels[];
60 extern int Weapon_energy_cheat;
61
62
63 enum SYSTEM_TYPE {WEAPONS, SHIELDS, ENGINES};
64
65 void update_ets(object* obj, float fl_frametime);
66 void ets_init_ship(object* obj);
67 void ai_manage_ets(object* obj);
68
69 void hud_init_ets();
70 void hud_show_ets();
71
72 void increase_recharge_rate(object* obj, SYSTEM_TYPE enum_value);
73 void decrease_recharge_rate(object* obj, SYSTEM_TYPE enum_value);
74 void set_default_recharge_rates(object* obj);
75
76 void transfer_energy_to_shields(object* obj);
77 void transfer_energy_to_weapons(object* obj);
78
79
80 #endif
81