Logo Search packages:      
Sourcecode: castle-combat version File versions

battle.h

#define MAX_CANNON_NUM 200

typedef struct {
    int x,y;
    int Type;
    int Damage;
    int Stability;
    int Active;
    int Destroyed;
    int Shot;
    Uint32 TimeSinceShot;
    Uint32 TimeToTarget;
    int ShotX,ShotY;
    int DestX,DestY;
    int Size;
} CannonType;

typedef struct {
    float x,y;
    int CannonNum, NextCannon;
    CannonType Cannon[MAX_CANNON_NUM];
    SDL_Surface *Crosshair,*NotReady;
} BattlePlayer;

extern BattlePlayer BaPlayer[PLAYERNUM];

void Battle();
void Destroy( int x, int y, int BigCannon);
void BattleNet();
void DrawCrosshair();
void UndrawCrosshair();
void ReallyShoot( int WhichPlayer, int i );


Generated by  Doxygen 1.6.0   Back to index