diff options
Diffstat (limited to 'includes/point.h')
-rw-r--r-- | includes/point.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/includes/point.h b/includes/point.h new file mode 100644 index 0000000..311d64d --- /dev/null +++ b/includes/point.h @@ -0,0 +1,27 @@ +#ifndef POINT_H +#define POINT_H + +#include "oo.h" + +#define TYPE Point + +DEFINE_OBJECT(TYPE); + +// Constructor +CONSTRUCTOR(TYPE); + +// Methods +void METHOD_ARG(TYPE, init, float x, float y); + +int METHOD_ARG(TYPE, toString, char* buffer); + +// Properties (getters & setters) +GETTER(TYPE, float, x); +SETTER(TYPE, float, x); + +GETTER(TYPE, float, y); +SETTER(TYPE, float, y); + +#undef TYPE + +#endif |