Sha256: fde770bf6fbbdd51082428edbe51933e786cac1c5392da6c0fcbd4f23f98ad0c

Contents?: true

Size: 854 Bytes

Versions: 25

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

25 entries across 25 versions & 1 rubygems

Version Path
reflexion-0.3.3 src/shape.h
reflexion-0.3.2 src/shape.h
reflexion-0.3.1 src/shape.h
reflexion-0.3 src/shape.h
reflexion-0.2.1 src/shape.h
reflexion-0.2 src/shape.h
reflexion-0.1.57 src/shape.h
reflexion-0.1.56 src/shape.h
reflexion-0.1.55 src/shape.h
reflexion-0.1.54 src/shape.h
reflexion-0.1.53 src/shape.h
reflexion-0.1.52 src/shape.h
reflexion-0.1.51 src/shape.h
reflexion-0.1.50 src/shape.h
reflexion-0.1.49 src/shape.h
reflexion-0.1.48 src/shape.h
reflexion-0.1.47 src/shape.h
reflexion-0.1.46 src/shape.h
reflexion-0.1.45 src/shape.h
reflexion-0.1.44 src/shape.h