forked from jstar0/CppGame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgamemap.cpp
More file actions
35 lines (35 loc) · 708 Bytes
/
Copy pathgamemap.cpp
File metadata and controls
35 lines (35 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include<iostream>
#include"gamemap.h"
#include"console.h"
#include"card.h"
#include"Player.h"
#include"run.h"
extern int roomPrintX,roomPrintY;
void print(Object object)
{
setcolor(object.forecolor,object.backcolor);
print(object.name,roomPrintX+object.x,roomPrintY+object.y);
}
void print(Room room)
{
for (int i=0; i<room.object_s; i++)
{
print(room.object[i]);
}
}
void Object::run()
{
return ;
}
void EnemyObject::run()
{
extern int have_s,hand_s,used_s;
extern std::vector<Card> have,hand,used;
extern Enemy *currentenemy;
have_s=Player::card.size();
hand_s=0;
used_s=0;
have=Player::card;
currentenemy=&enemy;
while(attack(enemy));
}