#include <eoDrawable.h>
Public Member Functions | |
eoDrawable (const Object &_o) | |
Main ctor from an already built Object. | |
eoDrawable (const eoDrawable &_d) | |
Copy constructor. | |
virtual | ~eoDrawable () |
Virtual dtor. They are needed in virtual class hierarchies. | |
virtual void | draw (unsigned _x, unsigned _y)=0 |
Draws the object. |
\ Requisites for template instantiation are that the object must admit a default ctor and a copy ctor. The Object must be an eoObject, thus, it must have its methods: className, eoDrawables can be drawn on any two-dimensional surface; it can be added to any object with above characteristics.
Definition at line 44 of file eoDrawable.h.
virtual void eoDrawable< Object >::draw | ( | unsigned | _x, | |
unsigned | _y | |||
) | [pure virtual] |
Draws the object.
It must be redefined in any subclass, itīs impossible to have a general drawing method
_x,_y | coorinates |