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

Diff of /enigma/actors.cc

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

revision 1.15 by dheck, Sat Dec 14 23:54:12 2002 UTC revision 1.16 by dheck, Sun Dec 22 20:59:05 2002 UTC
# Line 154  namespace Line 154  namespace
154          BasicBall(const char *kind, double radius, double mass);          BasicBall(const char *kind, double radius, double mass);
155    
156          enum State {          enum State {
157                NO_STATE,
158              NORMAL,              NORMAL,
159              SHATTERING,              SHATTERING,
160              DROWNING,              DROWNING,
# Line 192  namespace Line 193  namespace
193    
194  BasicBall::BasicBall(const char *kind, double radius, double mass)  BasicBall::BasicBall(const char *kind, double radius, double mass)
195      : Actor(kind, V3())      : Actor(kind, V3())
196      , state(NORMAL)      , state(NO_STATE)
197  {  {
198      world::ActorInfo *ai = get_actorinfo();      world::ActorInfo *ai = get_actorinfo();
199      ai->radius = radius;      ai->radius = radius;
# Line 287  BasicBall::change_state(State newstate) Line 288  BasicBall::change_state(State newstate)
288          world::GrabActor(this);          world::GrabActor(this);
289          set_model_cb(kind+"-drown");          set_model_cb(kind+"-drown");
290          break;          break;
291        default:
292            break;
293      }      }
294      state = newstate;      state = newstate;
295  }  }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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