Sha256: 69b781a6c2e60ddfeb55d7a8d862461c75cd9f115dd824553ee477c7aa0de55b

Contents?: true

Size: 860 Bytes

Versions: 10

Compression:

Stored size: 860 Bytes

Contents

// -*- c++ -*-
#pragma once
#ifndef __REFLEX_SRC_SHAPE_H__
#define __REFLEX_SRC_SHAPE_H__


#include <xot/util.h>
#include <reflex/shape.h>


class b2Shape;


namespace Reflex
{


	class WallShape : public Shape
	{

		typedef Shape Super;

		public:

			enum Position
			{

				LEFT   = Xot::bit(0),

				TOP    = Xot::bit(1),

				RIGHT  = Xot::bit(2),

				BOTTOM = Xot::bit(3),

				ALL    = LEFT | TOP | RIGHT | BOTTOM

			};// Position

			enum {DEFAULT_THICKNESS = 100};

			WallShape (uint positions, coord thickness = DEFAULT_THICKNESS);

			virtual void on_draw (DrawEvent* e);

	};// WallShape


	bool Shape_set_owner (Shape* shape, View* owner);

	bool Shape_has_frame (const Shape& shape);

	void Shape_update (Shape* shape, bool force = false);

	void Shape_call_contact_event (Shape* shape, const ContactEvent& event);


}// Reflex


#endif//EOH

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
reflexion-0.1.23 src/shape.h
reflexion-0.1.22 src/shape.h
reflexion-0.1.21 src/shape.h
reflexion-0.1.20 src/shape.h
reflexion-0.1.19 src/shape.h
reflexion-0.1.17 src/shape.h
reflexion-0.1.16 src/shape.h
reflexion-0.1.15 src/shape.h
reflexion-0.1.14 src/shape.h
reflexion-0.1.13 src/shape.h