You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
480 B
26 lines
480 B
#pragma once
|
|
|
|
#include "Graphics.h"
|
|
|
|
class Point{
|
|
private:
|
|
int x;
|
|
int y;
|
|
graphics_input img;
|
|
public:
|
|
Point();
|
|
Point(int y = 10, int x = 10, graphics_input img = '*');
|
|
~Point();
|
|
void setPoint(int y, int x);
|
|
int getX();
|
|
int getY();
|
|
void moveUp();
|
|
void moveDown();
|
|
void moveLeft();
|
|
void moveRight();
|
|
graphics_input getImg();
|
|
void setImg(graphics_input image);
|
|
void printImg();
|
|
void erase();
|
|
void randomize();
|
|
};
|