summaryrefslogtreecommitdiff
path: root/library.h
blob: 66cbde0b3875619bb4f61b1c783e1aacb0765101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <memory>
#include "global.h"
#include "object_base.h"

using namespace std;


extern Global global;


template <typename ObjT>
shared_ptr<Object> instance_create(int x,int y){
	shared_ptr<Object> ptr(new ObjT(x,y));
	global.objects.push_back(ptr);
	ptr->create();
	return ptr;
}

void draw_text(int x,int y,const char *s);
void log(const char *s);