Ejemplo n.º 1
0
nevil::wall::wall(int x, int y, double size_x, double size_y, double height, const Enki::Color &color)
{
  pos = Enki::Point(x, y);
  _off_color = color;
  _on_color = color;
  setRectangular(size_x, size_y, height, -1);
  setColor(color);
}
Ejemplo n.º 2
0
	SlidingDoor::SlidingDoor(const Point& closedPos, const Point& openedPos, const Point& size, double height, double moveDuration) :
		closedPos(closedPos),
		openedPos(openedPos),
		moveDuration(moveDuration),
		mode(MODE_CLOSED),
		moveTimeLeft(0)
	{
		setRectangular(size.x, size.y, height, -1);
	}
Ejemplo n.º 3
0
nevil::object::object(int x, int y, double size_x, double size_y
  , double height, const Enki::Color &off_color, const Enki::Color &on_color)
  : _off_color(off_color)
  , _on_color(on_color)
{
  pos = Enki::Point(x, y);
  setRectangular(size_x, size_y, height, -1);
  turn_off();
}
Ejemplo n.º 4
0
	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);
	}