test_custom_sampleComponentInst_inst.h 441 Bytes
Newer Older
Sascha Niklas Schneiders's avatar
Sascha Niklas Schneiders committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef TEST_CUSTOM_SAMPLECOMPONENTINST_INST
#define TEST_CUSTOM_SAMPLECOMPONENTINST_INST
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#include "armadillo.h"
using namespace arma;
class test_custom_sampleComponentInst_inst{
const int tilesMaxX = 16;
const int tilesMaxY = 16;
public:
int posX;
int posY;
imat world;
void init()
{
world=imat(tilesMaxX,tilesMaxY);
}
void execute()
{
21
int value = world(posX-1, posY-1);
Sascha Niklas Schneiders's avatar
Sascha Niklas Schneiders committed
22
23
24
25
}

};
#endif