summaryrefslogtreecommitdiff
path: root/Block.h
diff options
context:
space:
mode:
authorJapa2011-08-21 15:08:04 +0000
committerJapa2011-08-21 15:08:04 +0000
commit5b813e32b57ea085c0eb04b1b5f528b3698a167d (patch)
treef379955486124c7f2674c8e4db220ab2baa6dc76 /Block.h
parent6f96b930653206ca09fa79985126921cfe8fb03f (diff)
downloadstonesense-5b813e32b57ea085c0eb04b1b5f528b3698a167d.tar.gz
stonesense-5b813e32b57ea085c0eb04b1b5f528b3698a167d.tar.bz2
stonesense-5b813e32b57ea085c0eb04b1b5f528b3698a167d.tar.xz
Diffstat (limited to 'Block.h')
-rw-r--r--Block.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Block.h b/Block.h
index 9ed84ba..3e58097 100644
--- a/Block.h
+++ b/Block.h
@@ -1,4 +1,5 @@
-#pragma once
+#ifndef BLOCK_H
+#define BLOCK_H
#include "common.h"
#include "SpriteObjects.h"
@@ -12,10 +13,12 @@ public:
~Block(void);
static void* operator new (size_t size);
static void operator delete (void *p);
+ bool visible;
WorldSegment* ownerSegment;
uint32_t x, y, z;
+ int drawx, drawy, drawz;
int floorType;
int wallType;
int stairType;
@@ -132,4 +135,6 @@ bool wallShouldNotHaveBorders( int in );
void drawFloorBlood ( Block *b, int32_t drawx, int32_t drawy );
ALLEGRO_COLOR getSpriteColor(t_subSprite &sprite, DFHack::t_matglossPair material, DFHack::t_matglossPair layerMaterial, DFHack::t_matglossPair veinMaterial);
-ALLEGRO_COLOR getSpriteColor(t_SpriteWithOffset &sprite, DFHack::t_matglossPair material, DFHack::t_matglossPair layerMaterial, DFHack::t_matglossPair veinMaterial); \ No newline at end of file
+ALLEGRO_COLOR getSpriteColor(t_SpriteWithOffset &sprite, DFHack::t_matglossPair material, DFHack::t_matglossPair layerMaterial, DFHack::t_matglossPair veinMaterial);
+
+#endif \ No newline at end of file