00001 #ifndef RENDERER2D_HPP 00002 #define RENDERER2D_HPP 00003 00004 #include "Renderer.hpp" 00005 00006 template <typename Board2DType> 00007 class Renderer2D : public Renderer<Board2DType> 00008 { 00009 typedef typename Board2DType::Coords Coords; 00010 00011 private: 00012 00013 public: 00014 00017 virtual void displayBoard() 00018 { 00019 for ( int x = 0 ; x < Renderer<Board2DType>::m_pBoard->getDimensionLength(0) ; x++ ) 00020 { 00021 for ( int y = 0 ; y < Renderer<Board2DType>::m_pBoard->getDimensionLength(1) ; y++ ) 00022 { 00023 this->displayPiece(Coords(x,y)); 00024 } 00025 } 00026 } 00027 }; 00028 00036 #endif