Created
April 17, 2013 07:09
-
-
Save jsimmons/5402347 to your computer and use it in GitHub Desktop.
Block Types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum tn_block_type | |
{ | |
// This block is full of nothing! | |
TN_BLOCK_EMPTY, | |
// This block is full of its material. Chockers even! | |
TN_BLOCK_SOLID, | |
// Only the floor part (lowest 10th) filled with material. Walkable surface. | |
TN_BLOCK_FLOOR, | |
// A support that doesn't impede pathing. | |
TN_BLOCK_PILLAR, | |
// Stairs in each of the cardinal directions from the current z-level to | |
// the z-level above. | |
// If the tile above is not empty then the staircase is obviously unpathable. | |
TN_BLOCK_STAIR_N, | |
TN_BLOCK_STAIR_S, | |
TN_BLOCK_STAIR_E, | |
TN_BLOCK_STAIR_W, | |
// Ramp piece facing each cardinal direction. Acts like a stair. | |
TN_BLOCK_RAMP_N, | |
TN_BLOCK_RAMP_S, | |
TN_BLOCK_RAMP_E, | |
TN_BLOCK_RAMP_W, | |
// Ramp corner piece with the low point facing the given direction. | |
TN_BLOCK_RAMP_NE, | |
TN_BLOCK_RAMP_NW, | |
TN_BLOCK_RAMP_SE, | |
TN_BLOCK_RAMP_SW | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment