| | 1 | #ifndef _bh_cable_h |
| | 2 | #define _bh_cable_h 1 |
| | 3 | |
| | 4 | extern void PowerCableBehaveInit(void* bhdata, STRATEGYBLOCK* sbptr); |
| | 5 | extern void PowerCableBehaveFun(STRATEGYBLOCK* sbptr); |
| | 6 | |
| | 7 | #define CABLE_HEALTH_DISTANCE 2000 |
| | 8 | |
| | 9 | typedef struct power_cable_behav_block |
| | 10 | { |
| | 11 | AVP_BEHAVIOUR_TYPE bhvr_type; |
| | 12 | |
| | 13 | char nameID[SB_NAME_LENGTH]; |
| | 14 | |
| | 15 | VECTORCH position; |
| | 16 | |
| | 17 | int max_charge; //health value in fixed point |
| | 18 | int current_charge; //ditto |
| | 19 | int recharge_rate; //recharge rate per second |
| | 20 | |
| | 21 | } POWER_CABLE_BEHAV_BLOCK; |
| | 22 | |
| | 23 | typedef struct power_cable_tools_template |
| | 24 | { |
| | 25 | char nameID[SB_NAME_LENGTH]; |
| | 26 | VECTORCH position; |
| | 27 | int max_charge; |
| | 28 | int current_charge; |
| | 29 | int recharge_rate; |
| | 30 | |
| | 31 | } POWER_CABLE_TOOLS_TEMPLATE; |
| | 32 | |
| | 33 | #endif |