summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2012-08-11 08:53:02 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2012-08-13 22:48:55 (GMT)
commit8ec0f41fb143a6bda08d078232f3d70b36328dc4 (patch)
tree93b52bfef3bd66f04c62fa944728bb152079e56c /includes
parenta4c15746b8b3f6c187fbc7403fe5082883a8d9b7 (diff)
downloadpowder-8ec0f41fb143a6bda08d078232f3d70b36328dc4.zip
powder-8ec0f41fb143a6bda08d078232f3d70b36328dc4.tar.gz
Powered pipe, based on jacob1's commits
PSCN to turn on, NSCN to turn off, INST to reverse. Differences from jacob1's commit include: flood fill function that includes 1px diagonal pipes, powered/reversed state stored in tmp instead of flags, sparks from PSCN/NSCN/INST always take effect the following frame, single pixel pipe directions are a number from 0 to 7 so "if(coords)" does not check whether one is set (store another "transfers according to 1px pipe direction" bit for reverse flow).
Diffstat (limited to 'includes')
-rw-r--r--includes/powder.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/includes/powder.h b/includes/powder.h
index 780b4e4..bc99258 100644
--- a/includes/powder.h
+++ b/includes/powder.h
@@ -160,11 +160,9 @@
#define PT_PVOD 84
#define PT_CONV 85
#define PT_CAUS 86
-
#define PT_LIGH 87
#define PT_TESC 88
#define PT_DEST 89
-
#define PT_SPNG 90
#define PT_RIME 91
#define PT_FOG 92
@@ -237,7 +235,8 @@
#define PT_FIGH 158
#define PT_FRAY 159
#define PT_REPL 160
-#define PT_NUM 161
+#define PT_PPIP 161
+#define PT_NUM 162
#define R_TEMP 22
#define MAX_TEMP 9999
@@ -352,6 +351,7 @@ int graphics_SOAP(GRAPHICS_FUNC_ARGS);
int graphics_EXOT(GRAPHICS_FUNC_ARGS);
int graphics_WARP(GRAPHICS_FUNC_ARGS);
int graphics_EMBR(GRAPHICS_FUNC_ARGS);
+int graphics_BRCK(GRAPHICS_FUNC_ARGS);
void TRON_init_graphics();
@@ -482,6 +482,7 @@ int update_legacy_all(UPDATE_FUNC_ARGS);
int run_stickman(playerst* playerp, UPDATE_FUNC_ARGS);
void STKM_init_legs(playerst* playerp, int i);
void STKM_interact(playerst* playerp, int i, int x, int y);
+void PPIP_flood_trigger(int x, int y, int sparkedBy);
struct part_type
{
@@ -759,6 +760,7 @@ extern int portal_ry[8];
extern int wire_placed;
extern int force_stacking_check;
+extern int ppip_changed;
extern playerst player;
extern playerst player2;