244 |
//====================================================================== |
//====================================================================== |
245 |
// FLOORS |
// FLOORS |
246 |
//====================================================================== |
//====================================================================== |
247 |
static long ctr = 0; |
|
248 |
Floor::Floor(const char *kind, double friction_, double mfactor) |
Floor::Floor(const char *kind, double friction_, double mfactor) |
249 |
: TGridObject<GRID_FLOOR>(kind), |
: TGridObject<GRID_FLOOR>(kind), |
250 |
traits (kind, friction_, mfactor, FLOOR_Normal) |
traits (kind, friction_, mfactor, FLOOR_Normal) |
251 |
{ |
{} |
|
cout << "Floor::Floor(); " << ++ctr << endl; |
|
|
} |
|
252 |
|
|
253 |
Floor::Floor (const FloorTraits &tr) |
Floor::Floor (const FloorTraits &tr) |
254 |
: TGridObject<GRID_FLOOR>(tr.name), traits (tr) |
: TGridObject<GRID_FLOOR>(tr.name), traits (tr) |
255 |
{ |
{} |
|
cout << "Floor::Floor();" << ++ctr << endl; |
|
|
} |
|
|
|
|
|
Floor::~Floor() |
|
|
{ |
|
|
cout << "Floor::~Floor();" << --ctr << endl; |
|
|
} |
|
|
|
|
256 |
|
|
257 |
Floor *Floor::clone() { |
Floor *Floor::clone() { |
258 |
return this; |
return this; |