#include <graphic.h>
Inherited by Animation, AnimationSprite, Button, Draggable, GameSpot, Layer, LogicComponent, LogicToolboxGate, MemMessageBoard, RobotBoard, Sprite, Text, and TransparentSprite.

Public Member Functions | |
| virtual void | draw (BITMAP *canvas, Point offset)=0 |
| This is the main reason for this class. | |
| void | move (Point p) |
| location += p | |
| void | move (int x, int y) |
| location += (x, y) | |
| void | moveTo (Point p) |
| location = p | |
| void | moveTo (int x, int y) |
| location = (x, y) | |
| int | x () |
| The x-coordinate of this object. | |
| int | y () |
| The y-coordinate of this object. | |
| Point | loc () |
| The location of this object. | |
| virtual | ~Graphic () |
Protected Attributes | |
| Point | location |
| The location of this object relative to the Layer it is contained in. | |
Any class that inherits from Graphic must implement the draw() method.
| virtual Graphic::~Graphic | ( | ) | [inline, virtual] |
| virtual void Graphic::draw | ( | BITMAP * | canvas, | |
| Point | offset | |||
| ) | [pure virtual] |
This is the main reason for this class.
Implemented in LogicGate, LogicGenerator, LogicTarget, LogicToolboxGate, MemData, MemDisplayMap, MemMessageBoard, GameSpot, ChangeableSprite, RobotBoard, RobotBox, RobotCommand, Animation, AnimationSprite, Button, Draggable, Layer, Sprite, Text, and TransparentSprite.
| Point Graphic::loc | ( | ) |
The location of this object.
| void Graphic::move | ( | int | x, | |
| int | y | |||
| ) |
location += (x, y)
| void Graphic::move | ( | Point | p | ) |
location += p
| void Graphic::moveTo | ( | int | x, | |
| int | y | |||
| ) |
location = (x, y)
| void Graphic::moveTo | ( | Point | p | ) |
location = p
| int Graphic::x | ( | ) |
The x-coordinate of this object.
| int Graphic::y | ( | ) |
The y-coordinate of this object.
Point Graphic::location [protected] |
The location of this object relative to the Layer it is contained in.
1.5.7.1