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 |
|
|
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 |
{ |
{ |
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 |
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")); |