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

build.h

#include "game.h"

#define Master BPlayer[0].Local

typedef struct {
    char x,y;
} Coord;

typedef struct {
    char Block[3][3];
    signed char x, y;
    int Left, Right, Up, Down, Button1, Button2;
    int FastLeft, FastRight, FastUp, FastDown;
    Uint32 Color;
    char Secured[WIDTH][HEIGHT];
    SDL_Surface *Ground,*CursorBlock,*Wall,*Select;
    int Lost, WaitForNextBlock, Lives;
    int Local;
    char Name[100];
    Coord OldCenter;
} BuildPlayer;

extern BuildPlayer BPlayer[PLAYERNUM+1];
extern Uint32 EndOfPhase;

extern void Build();
extern void PrintTime();
extern void Redraw(int x, int y, int WhichPlayer);
extern void RedrawEverything();
extern void LookForSecuredAreas( int WhichPlayer );
extern char WallCheck(int x, int y);
extern void SendPos( int which, int sig);
extern void BuildNet();
extern int CastlesSurrounded(int WhichPlayer);
extern void CalcBlock( int WhichPlayer, int Block, int turn);
extern void Turn( int WhichPlayer );
extern void ReallyPutBlock(int WhichPlayer);
extern int CastlesSurrounded(int WhichPlayer);
extern void DrawSingleBlock( SDL_Surface *Dest, int x, int y, int WhichPlayer, int Style);
extern void UndrawBlock();
extern void DrawBlock();
extern void ReallyClean(int Cleaned);
extern void InitBuild();
extern Coord Center(int i);

Generated by  Doxygen 1.6.0   Back to index