Clean up definitions
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9238 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
a0af4638af
commit
ceed2c4ce1
|
@ -171,9 +171,6 @@ bool spiralSearch(int startX, int startY, int max_radius, tileMatchFunction matc
|
|||
/** Choose a landing position for a VTOL when it goes to rearm. */
|
||||
bool actionVTOLLandingPos(const DROID* psDroid, UDWORD* px, UDWORD* py);
|
||||
|
||||
/** Try to find a better target. */
|
||||
extern BOOL updateAttackTarget(BASE_OBJECT * psAttacker, SDWORD weapon_slot);
|
||||
|
||||
/** How many frames to skip before updating naybors. */
|
||||
#define NAYBOR_SKIP_FRAMES 8
|
||||
|
||||
|
|
4
src/ai.c
4
src/ai.c
|
@ -42,6 +42,8 @@
|
|||
/* Calculates attack priority for a certain target */
|
||||
static SDWORD targetAttackWeight(BASE_OBJECT *psTarget, BASE_OBJECT *psAttacker, SDWORD weapon_slot);
|
||||
|
||||
static BOOL updateAttackTarget(BASE_OBJECT * psAttacker, SDWORD weapon_slot);
|
||||
|
||||
// alliances
|
||||
UBYTE alliances[MAX_PLAYERS][MAX_PLAYERS];
|
||||
|
||||
|
@ -1279,7 +1281,7 @@ BOOL validTarget(BASE_OBJECT *psObject, BASE_OBJECT *psTarget, int weapon_slot)
|
|||
}
|
||||
|
||||
/* Make droid/structure look for a better target */
|
||||
BOOL updateAttackTarget(BASE_OBJECT * psAttacker, SDWORD weapon_slot)
|
||||
static BOOL updateAttackTarget(BASE_OBJECT * psAttacker, SDWORD weapon_slot)
|
||||
{
|
||||
BASE_OBJECT *psBetterTarget=NULL;
|
||||
UWORD tmpOrigin = ORIGIN_UNKNOWN;
|
||||
|
|
|
@ -61,6 +61,4 @@ extern BOOL formationGetPos(FORMATION *psFormation, DROID* psDroid,
|
|||
// See if a unit is a member of a formation (i.e. it has a position assigned)
|
||||
extern BOOL formationMember(FORMATION *psFormation, const DROID* psDroid);
|
||||
|
||||
extern SDWORD formationGetSpeed( FORMATION *psFormation );
|
||||
|
||||
#endif // __INCLUDED_SRC_FORMATION_H__
|
||||
|
|
|
@ -68,10 +68,6 @@ unsigned int grpNumMembers(const DROID_GROUP* psGroup);
|
|||
// remove all droids from a group
|
||||
void grpReset(DROID_GROUP *psGroup);
|
||||
|
||||
/* Give a group an order */
|
||||
struct _droid_order_data;
|
||||
//extern void orderGroupBase(DROID_GROUP *psGroup, struct _droid_order_data *psData);
|
||||
|
||||
/* Give a group an order */
|
||||
extern void orderGroup(DROID_GROUP *psGroup, DROID_ORDER order);
|
||||
|
||||
|
|
Loading…
Reference in New Issue