/*
    This file is part of Society Chess.
    Society Chess is a network chess game.
    Copyright (C) 2011  Sterling Pickens

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _EXT_GLBLS
#define _EXT_GLBLS 1

#include <stdio.h>
#include <stdlib.h>


struct grid{
        int x;
        int y;
};

/*
struct movement{
    struct grid source;
    struct grid destination;
    int valid_option;
};
*/

struct movement{
	int source_x;
	int source_y;
	int dest_x;
	int dest_y;
    int xdiff;
    int ydiff;
    int capturing;
    int op_pc;
    int my_pc;
    int my_type;
	int caller;
};

//typedef struct a_movement movement;
//typedef struct Node *NodePtr;
//typedef struct a_movement * moveptr;

struct pieces{
        //int team_color;  //0 white 1 black
        int alive;       //0 dead 1 alive
        int type;        //0 pawn 1 rook 2 knight 3 bishop 4 queen 5 king
        struct grid position;
        int first_turn;
		int color;
};


#endif
