Sha256: ef88855ebaef3910fa3a62100d62712c41e92dd3275d2540140f27b2ab6e8544

Contents?: true

Size: 854 Bytes

Versions: 15

Compression:

Stored size: 854 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, ContactEvent* event);


}// Reflex


#endif//EOH

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
reflexion-0.1.38 src/shape.h
reflexion-0.1.37 src/shape.h
reflexion-0.1.36 src/shape.h
reflexion-0.1.35 src/shape.h
reflexion-0.1.34 src/shape.h
reflexion-0.1.33 src/shape.h
reflexion-0.1.32 src/shape.h
reflexion-0.1.31 src/shape.h
reflexion-0.1.30 src/shape.h
reflexion-0.1.29 src/shape.h
reflexion-0.1.28 src/shape.h
reflexion-0.1.27 src/shape.h
reflexion-0.1.26 src/shape.h
reflexion-0.1.25 src/shape.h
reflexion-0.1.24 src/shape.h