ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/cf.schmorp.de/dclient/src/backend/communicator/map.cpp
Revision: 1.1
Committed: Sun Oct 17 08:15:01 2010 UTC (16 years ago) by sf-pippijn
Branch: MAIN
Log Message:
initial import

File Contents

# User Rev Content
1 sf-pippijn 1.1 #include "deliantra/data/map.h"
2    
3     #include <string>
4    
5     using data::map;
6    
7     void
8     map::clear ()
9     {
10     x = 0;
11     y = 0;
12     for (auto &row : rows)
13     for (auto &cell : row)
14     cell.clear_all ();
15     }
16    
17     void
18     map::ensure (int x, int y)
19     {
20     rows.ensure (y);
21     rows.at (y).ensure (x);
22     }