YAPOG  0.0.1
Yet Another Pokemon Online Game
BasicTileLayoutHandler.cpp
Go to the documentation of this file.
3 
4 namespace yap
5 {
8  , width_ (width)
9  , height_ (height)
10  , tiles_ (width_ * height_, nullptr)
11  {
12  }
13 
15  {
16  }
17 
19  {
20  tiles_[y * width_ + x] = tile;
21  }
22 
24  {
25  for (uint y = 0; y < height_; ++y)
26  for (uint x = 0; x < width_; ++x)
27  tileLayer.SetTile (x, y, tiles_[y * width_ + x]);
28  }
29 } // namespace yap