ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/cf.schmorp.de/dclient/src/backend/communicator/map.cpp
Revision: 1.2
Committed: Mon Oct 18 06:53:59 2010 UTC (15 years, 11 months ago) by sf-pippijn
Branch: MAIN
Changes since 1.1: +2 -2 lines
Log Message:
gcc 4.5; moved some code; background colour support

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 sf-pippijn 1.2 foreach (auto &row, rows)
13     foreach (auto &cell, row)
14 sf-pippijn 1.1 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     }