/[enigma]/enigma/src/actors.cc
ViewVC logotype

Diff of /enigma/src/actors.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by dheck, Mon Jun 16 12:31:28 2003 UTC revision 1.24 by reallysoft, Sun Jun 22 08:10:15 2003 UTC
# Line 270  namespace Line 270  namespace
270    
271  BasicBall::BasicBall(const char *kind, double radius, double mass)  BasicBall::BasicBall(const char *kind, double radius, double mass)
272  : Actor(kind, V2()), state(NO_STATE),  : Actor(kind, V2()), state(NO_STATE),
273    sinkDepth (0)    sinkDepth (0), sinkModel(-1)
274  {  {
275      world::ActorInfo *ai = get_actorinfo();      world::ActorInfo *ai = get_actorinfo();
276      ai->radius = radius;      ai->radius = radius;
# Line 301  void BasicBall::message(const string &m, Line 301  void BasicBall::message(const string &m,
301      }      }
302  }  }
303    
304  void BasicBall::think(double dtime)  void BasicBall::think(double dtime)
305  {  {
306      ActorInfo *ai = get_actorinfo();      ActorInfo *ai = get_actorinfo();
307            
308      if (state == NORMAL) {      if (state == NORMAL) {
309          int xpos = static_cast<int>(ai->pos[0] * 32.0);          int xpos = static_cast<int>(ai->pos[0] * 32.0);
310          int ypos = static_cast<int>(ai->pos[1] * 32.0);          int ypos = static_cast<int>(ai->pos[1] * 32.0);
# Line 334  void BasicBall::think(double dtime) Line 334  void BasicBall::think(double dtime)
334      }      }
335  }  }
336    
337  void BasicBall::set_sink_model(const string &m)  void BasicBall::set_sink_model(const string &m)
338  {  {
339      int modelnum = static_cast<int>(sinkDepth);      int modelnum = static_cast<int>(sinkDepth);
340    

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26