Removed gettextdbg() which apparently served no purpose whatsoever.
[neverball] / share / solid.h
index b51fd3d..55e049e 100644 (file)
@@ -1,4 +1,4 @@
-/*   
+/*
  * Copyright (C) 2003 Robert Kooima
  *
  * NEVERBALL is  free software; you can redistribute  it and/or modify
@@ -15,7 +15,6 @@
 #ifndef SOL_H
 #define SOL_H
 
-#include <SDL.h>
 #include "glext.h"
 #include "base_config.h"
 
@@ -32,7 +31,7 @@
  * the variable.
  *
  * The Xs are as documented by struct s_file:
- * 
+ *
  *     f  File          (struct s_file)
  *     m  Material      (struct s_mtrl)
  *     v  Vertex        (struct s_vert)
@@ -69,7 +68,7 @@
  * lumps.  "ei" and "ej" are  edge indices into some "ev" edge vector.
  * An edge is  defined by two vertices, so  an edge structure consists
  * of "vi" and "vj".  And so on.
- * 
+ *
  * Those members that do not conform to this convention are explicitly
  * documented with a comment.
  *
@@ -198,19 +197,22 @@ struct s_goal
 {
     float p[3];                                /* position                   */
     float r;                                   /* radius                     */
+    int   s;                                   /* levels skiped              */
+    int   c;                                   /* special coloration?        */
 };
 
 struct s_swch
 {
     float p[3];                                /* position                   */
     float r;                                   /* radius                     */
-    int  pi;
+    int  pi;                                   /* the linked path            */
 
     float t0;                                  /* default timer              */
     float t;                                   /* current timer              */
     int   f0;                                  /* default state              */
     int   f;                                   /* current state              */
     int   i;                                   /* is invisible?              */
+    int   e;                                   /* is a ball inside it?       */
 };
 
 struct s_bill
@@ -302,22 +304,20 @@ struct s_file
 
 /*---------------------------------------------------------------------------*/
 
+void sol_body_p(float p[3], const struct s_file *, const struct s_body *);
+
+/*---------------------------------------------------------------------------*/
+
 int   sol_load_only_file(struct s_file *, const char *);
-int   sol_load(struct s_file *, const char *, int, int);
 int   sol_stor(struct s_file *, const char *);
 void  sol_free(struct s_file *);
 
-void  sol_back(const struct s_file *, float, float, float);
-void  sol_refl(const struct s_file *);
-void  sol_draw(const struct s_file *);
-void  sol_shad(const struct s_file *);
-
 float sol_step(struct s_file *, const float *, float, int, int *);
 
 int   sol_coin_test(struct s_file *, float *, float);
-int   sol_goal_test(struct s_file *, float *, int);
+struct s_goal *sol_goal_test(struct s_file *, float *, int);
 int   sol_jump_test(struct s_file *, float *, int);
-int   sol_swch_test(struct s_file *, int, int);
+int   sol_swch_test(struct s_file *, int);
 
 /*---------------------------------------------------------------------------*/