X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fvehicle.h;h=919845403f6d54fba3117f3e6342ff674e3ad0c2;hb=54cb832334a83fc266b59e2c9b60ee936db7118f;hp=36853c95a944786649a933a03961eb4fe90e4ff0;hpb=f8a7788cee0261babfc4c804a58515aad6dfbc3d;p=r2c2.git diff --git a/source/3d/vehicle.h b/source/3d/vehicle.h index 36853c9..9198454 100644 --- a/source/3d/vehicle.h +++ b/source/3d/vehicle.h @@ -1,34 +1,22 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2010-2011 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - -#ifndef LIBR2C23D_VEHICLE_H_ -#define LIBR2C23D_VEHICLE_H_ +#ifndef R2C2_3D_VEHICLE_H_ +#define R2C2_3D_VEHICLE_H_ +#include #include #include "libr2c2/vehicle.h" #include "object.h" namespace R2C2 { -class Axle3D; -class Bogie3D; -class Layout3D; -class Rod3D; +class VehiclePart3D; class VehicleType3D; class Vehicle3D: public Object3D, public Msp::GL::ObjectInstance { private: - Layout3D &layout; Vehicle &vehicle; const VehicleType3D &type; - std::vector axles; - std::vector bogies; - std::vector rods; + std::vector children; public: Vehicle3D(Layout3D &, Vehicle &); @@ -39,7 +27,10 @@ public: virtual Vector get_node() const; virtual bool is_visible() const; +private: + virtual void moved(); +public: virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const; virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const; };