The DejaVU Framework -- hush 3.1

include: professional-program-15-GameBoard-GameBoard.h /cygdrive/d/www/media


- [up] [top] - index make include source logic grammar scripts html configure mx slides talks scenes reports projects
<body bgcolor="#FFFFFF" text="#000000">

include 
include 
using std::bad_alloc;
using std::out_of_range;

<h4 align=right text=red> GamePiece</h4><hr>
  class GamePiece {};
<hr>


<hr>

GameBoard</h4>
  class GameBoard
  {
   public:
    GameBoard(int inWidth = kDefaultWidth, int inHeight = kDefaultHeight)
      throw(bad_alloc);
    GameBoard(const GameBoard& src) throw(bad_alloc);
    ~GameBoard() throw();
  
    GameBoard& operator=(const GameBoard& rhs) throw(bad_alloc);
  
    void setPieceAt(int x, int y, const GamePiece& inPiece)
      throw(out_of_range);
    GamePiece& getPieceAt(int x, int y) throw(out_of_range);
    const GamePiece& getPieceAt(int x, int y) const throw(out_of_range);
  
    int getHeight() const throw() { return mHeight; }
    int getWidth() const throw() { return mWidth; }
  
    static const int kDefaultWidth = 100;
    static const int kDefaultHeight = 100;
  
   protected:
    void copyFrom(const GameBoard& src) throw(bad_alloc);
  
    GamePiece** mCells;
    int mWidth, mHeight;
  };


  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author. <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-2780434-1"; urchinTracker(); </script>

Hush Online Technology
hush@cs.vu.nl
10/19/08