diff options
| author | Japa | 2010-04-09 14:12:29 +0000 |
|---|---|---|
| committer | Japa | 2010-04-09 14:12:29 +0000 |
| commit | 81aefc8e03ff3f647494012e18bcdc8f33f4de42 (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Block.h | |
| parent | c3d0b7d6778af46299901d959d589d6599afa21c (diff) | |
| download | stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.gz stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.bz2 stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.xz | |
There is no trunk
it is not the code that compiles, it is you.
Diffstat (limited to 'Block.h')
| -rw-r--r-- | Block.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/Block.h b/Block.h deleted file mode 100644 index 7a99b4c..0000000 --- a/Block.h +++ /dev/null @@ -1,59 +0,0 @@ -#pragma once
-
-#include "common.h"
-
-class WorldSegment;
-
-
-class Block
-{
-public:
- Block(WorldSegment* ownerSegment);
- ~Block(void);
- static void* operator new (size_t size);
- static void operator delete (void *p);
-
- WorldSegment* ownerSegment;
-
- uint32_t x, y, z;
- int floorType;
- int wallType;
- int stairType;
- t_matglossPair material;
-
- bool depthBorderNorth;
- bool depthBorderWest;
- int shadow;
-
- t_matglossPair ramp;
- t_matglossPair water;
- t_designation designation;
- t_occupancy occ;
-
- t_creature* creature;
- //bool mirroredBuilding;
- t_matglossPair tree;
-
- struct {
- t_building info;
- vector<t_SpriteWithOffset> sprites;
- uint32_t index;
- } building;
-
- bool IsVisible(){
- return (floorType || wallType) != 0;
- }
- void Draw(BITMAP* target);
- void DrawRamptops(BITMAP* target);
-
-private:
-
-};
-
-
-//find a better place for these
-bool hasWall(Block* b);
-bool hasBuildingOfID(Block* b, int ID);
-bool hasBuildingIdentity(Block* b, uint32_t index, int buildingOcc);
-bool hasBuildingOfIndex(Block* b, uint32_t index);
-bool wallShouldNotHaveBorders( int in );
|
