/[enigma]/enigma/src/objects.hh
ViewVC logotype

Diff of /enigma/src/objects.hh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.42 by reallysoft, Sun Jul 6 12:47:04 2003 UTC revision 1.43 by ant_39, Sun Jul 6 20:51:21 2003 UTC
# Line 229  namespace world Line 229  namespace world
229    
230      struct FloorTraits {      struct FloorTraits {
231          FloorTraits (const char *n, double f, double m, FloorFlags fl)          FloorTraits (const char *n, double f, double m, FloorFlags fl)
232          { name = n; friction = f; mousefactor = m; flags = fl; }              : friction(f),
233                  mousefactor(m),
234                  flags(fl)
235            {
236                name = new char[strlen(n)+1];
237                strcpy(name, n);
238            }
239            FloorTraits(const FloorTraits &copy)
240                : friction(copy.friction),
241                  mousefactor(copy.mousefactor),
242                  flags(copy.flags)
243            {
244                name = new char[strlen(copy.name)+1];
245                strcpy(name, copy.name);
246            }
247            ~FloorTraits() {
248                delete[] name;
249            }
250    
251          const char *name;          char   *name;
252          double      friction;          double  friction;
253          double      mousefactor;          double  mousefactor;
254          FloorFlags  flags;          FloorFlags  flags;
255       };       };
256    

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26