blob: ce97f2a17b15a699f0b6720aa2e7b43cf7e34080 (
plain)
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
|
#include <iostream>
#include <cassert>
#include "object_base.h"
#include "library.h"
using namespace std;
Object::Object(void){
log("Object constructed");
}
Object::Object(double x,double y):x(x),y(y){
log("Object constructed at position");
}
Object::~Object(void){
log("Object destructed");
}
void Object::create(void){}
void Object::destroy(void){}
void Object::step(void){}
void Object::draw(void){
/*if(!sprite_index){
return;
}
if(!sprite_index->fl_image){
sprite_index->fl_image=new Fl_PNG_Image(nullptr,sprite_index->image,sprite_index->image_len);
assert(!sprite_index->fl_image->fail());
}
sprite_index->fl_image->draw((int)x,(int)y);*/
}
|