aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2005-01-23 19:06:10 +0000
committerCarsten Weisse <[email protected]>2005-01-23 19:06:10 +0000
commitbdcbadc4a0a79ef95cce9937186e4ad13ae30004 (patch)
treea5fba6b0397584223486f438b8bae1d211f55a33
parentf14cc86aebd482ca41f9e3181c8176c4ab23d32a (diff)
new clear() method
-rw-r--r--src/jake2/game/entity_state_t.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/jake2/game/entity_state_t.java b/src/jake2/game/entity_state_t.java
index e4e7b68..abba83e 100644
--- a/src/jake2/game/entity_state_t.java
+++ b/src/jake2/game/entity_state_t.java
@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Created on 08.11.2003 by RST.
-// $Id: entity_state_t.java,v 1.3 2004-08-20 21:29:58 salomo Exp $
+// $Id: entity_state_t.java,v 1.4 2005-01-23 19:06:10 cawe Exp $
package jake2.game;
@@ -145,4 +145,22 @@ public class entity_state_t implements Cloneable
sound = from.sound;
event = from.event;
}
+
+ public void clear()
+ {
+ number = -99999;
+ surrounding_ent = null;
+ Math3D.VectorClear(origin);
+ Math3D.VectorClear(angles);
+ Math3D.VectorClear(old_origin);
+ modelindex = 0;
+ modelindex2 = modelindex3 = modelindex4 = 0;
+ frame = 0;
+ skinnum = 0;
+ effects = 0;
+ renderfx = 0;
+ solid = 0;
+ sound = 0;
+ event = 0;
+ }
} \ No newline at end of file