SbotActiveObject::SbotActiveObject(double objectRadius, double actionRange) : feeding(actionRange, this) { addLocalInteraction(&feeding); // we override physical settings setup because we only have objectRadius here setCylindric(objectRadius, 1.9, -1); }
DoorButton::DoorButton(const Point& pos, const Point& size, const Polygon& activeArea, Door* attachedDoor) : areaActivating(this, activeArea), wasActive(false), attachedDoor(attachedDoor) { this->pos = pos; setRectangular(size.x, size.y, ACTIVATION_OBJECT_HEIGHT, -1); addLocalInteraction(&areaActivating); setColor(ACTIVATION_OBJECT_COLOR); }
SbotActiveSoundObject::SbotActiveSoundObject(double objectRadius, double actionRange) : SbotActiveObject(objectRadius, actionRange), ActiveSoundObject(this, actionRange, 25) { addLocalInteraction(&speaker); }