class Bolt BoltType mType тип болта float mWeight вес болта public Bol

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
class Bolt
{
BoltType mType;// тип болта
float mWeight;// вес болта
...
public:
Bolt(BoltType type) {...};
virtual void draw(Car* car, const Position& boltPosition)
{
Position pos = car->getPosition() + boltPosition;
DrawSystem::instance().drawBolt(mType, pos);
};
...
};