Skip to content
Permalink
a01b93a8d6
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
33 lines (30 sloc) 461 Bytes
#ifndef _ENEMY_H_
#define _ENEMY_H_
class Enemy
{
private:
int x, y;
char character;
WINDOW * curwin;
public:
Enemy(WINDOW * win, int yc, int xc, char c)
{
curwin=win;
y=yc; x=xc;
character=c;
}
void display()
{
mvwaddch(curwin, y, x, character);
wrefresh(curwin);
}
int get_x()
{
return x;
}
int get_y()
{
return y;
}
};
#endif