Show
Ignore:
Timestamp:
09/29/06 23:09:01 (2 years ago)
Author:
ug
Message:

Fixed tabwidth, expanded tabs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 06/libkombilo/abstractboard.h

    r186 r188  
    4141 
    4242class MoveNC { 
    43        public: 
    44                char x; 
    45                char y; 
    46                char color; 
     43  public: 
     44    char x; 
     45    char y; 
     46    char color; 
    4747 
    48                MoveNC(); 
    49          MoveNC(char X, char Y, char COLOR); 
    50                bool operator==(const MoveNC& mnc) const; 
     48    MoveNC(); 
     49    MoveNC(char X, char Y, char COLOR); 
     50    bool operator==(const MoveNC& mnc) const; 
    5151}; 
    5252 
    5353class Move : public MoveNC { 
    54        public: 
    55                Move(char xx, char yy, char cc); 
    56                Move(const Move& m); 
    57                ~Move(); 
    58                Move& operator=(const Move& m); 
     54  public: 
     55    Move(char xx, char yy, char cc); 
     56    Move(const Move& m); 
     57    ~Move(); 
     58    Move& operator=(const Move& m); 
    5959 
    60                vector<pair<char,char> >* captures; 
     60    vector<pair<char,char> >* captures; 
    6161}; 
    6262 
    6363 
    6464class abstractBoard { 
    65        public: 
    66                int boardsize; 
    67                char* status; 
    68                stack<Move> undostack; 
     65  public: 
     66    int boardsize; 
     67    char* status; 
     68    stack<Move> undostack; 
    6969 
    70                abstractBoard(int bs = 19) throw(BoardError); 
    71                abstractBoard(const abstractBoard& ab); 
    72                ~abstractBoard(); 
    73                abstractBoard& operator=(const abstractBoard& ab); 
    74                void clear(); 
    75                int play(int x, int y, char* color) throw(BoardError); 
    76                void undo(int n=1); 
    77                void remove(int x, int y); 
    78                char getStatus(int x, int y); 
    79                void setStatus(int x, int y, char val); 
    80                int len_cap_last() throw(BoardError); 
    81                void undostack_append_pass(); 
    82                // abstractBoard& copy(const abstractBoard& ab); 
     70    abstractBoard(int bs = 19) throw(BoardError); 
     71    abstractBoard(const abstractBoard& ab); 
     72    ~abstractBoard(); 
     73    abstractBoard& operator=(const abstractBoard& ab); 
     74    void clear(); 
     75    int play(int x, int y, char* color) throw(BoardError); 
     76    void undo(int n=1); 
     77    void remove(int x, int y); 
     78    char getStatus(int x, int y); 
     79    void setStatus(int x, int y, char val); 
     80    int len_cap_last() throw(BoardError); 
     81    void undostack_append_pass(); 
     82    // abstractBoard& copy(const abstractBoard& ab); 
    8383 
    84        private: 
    85                int* neighbors(int x, int y); 
    86                vector<pair<char,char> >* legal(int x, int y, char color); 
    87                vector<pair<char,char> >* hasNoLibExcP(int x1, int y1, int exc=-1); 
    88                char invert(char); 
     84  private: 
     85    int* neighbors(int x, int y); 
     86    vector<pair<char,char> >* legal(int x, int y, char color); 
     87    vector<pair<char,char> >* hasNoLibExcP(int x1, int y1, int exc=-1); 
     88    char invert(char); 
    8989}; 
    9090