/[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.17 by reallysoft, Tue May 13 23:40:52 2003 UTC revision 1.18 by dheck, Sun May 18 18:45:07 2003 UTC
# Line 25  Line 25 
25  #include "object_mixins.hh"  #include "object_mixins.hh"
26  #include "world.hh"  #include "world.hh"
27    
28    #include <cassert>
29    
30  using px::V2;  using px::V2;
31  using namespace world;  using namespace world;
32    
# Line 79  Actor::on_respawn (const px::V2 &pos) Line 81  Actor::on_respawn (const px::V2 &pos)
81  {  {
82  }  }
83    
   
 // enigma::GridPos get_field(const px::V2& p)  
 // {  
 //     return enigma::GridPos(static_cast<int>(p[0]), static_cast<int>(p[1]));  
 // }  
   
84  void  void
85  Actor::warp(const px::V2 &newpos)  Actor::warp(const px::V2 &newpos)
86  {  {
# Line 193  namespace Line 189  namespace
189    
190    
191  //----------------------------------------  //----------------------------------------
192    // CannonBall
193    //----------------------------------------
194    namespace
195    {
196        class CannonBall : public Actor {
197            CLONEACTOR(CannonBall);
198        public:
199            CannonBall() : Actor ("ac-cannonball", V2()) {
200            }
201            bool is_flying() { return true; }
202            bool is_dead() { return false; }
203        };
204    }
205    
206    
207    //----------------------------------------
208  // BasicBall  // BasicBall
209  //----------------------------------------  //----------------------------------------
210  namespace  namespace
# Line 481  namespace Line 493  namespace
493  void  void
494  actors::Init()  actors::Init()
495  {  {
     using world::Register;  
   
496      Register(new Horse);      Register(new Horse);
497      Register(new Rotor("ac-rotor"));      Register(new Rotor("ac-rotor"));
498      Register(new Rotor("ac-top"));      Register(new Rotor("ac-top"));

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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