| 1 | #include "MapObj/SpaceShuttleChild.h" |
| 2 | |
| 3 | #include "Library/LiveActor/ActorInitUtil.h" |
| 4 | #include "Library/Nerve/NerveSetupUtil.h" |
| 5 | |
| 6 | namespace { |
| 7 | NERVE_IMPL(SpaceShuttleChild, Wait); |
| 8 | |
| 9 | NERVES_MAKE_NOSTRUCT(SpaceShuttleChild, Wait); |
| 10 | } // namespace |
| 11 | |
| 12 | SpaceShuttleChild::SpaceShuttleChild(const char* name) : al::LiveActor(name) {} |
| 13 | |
| 14 | void SpaceShuttleChild::init(const al::ActorInitInfo& info) { |
| 15 | al::initActorWithArchiveName(actor: this, initInfo: info, archiveName: "SpaceShuttleB" , suffix: nullptr); |
| 16 | al::initNerve(actor: this, nerve: &Wait, maxStates: 5); |
| 17 | makeActorAlive(); |
| 18 | } |
| 19 | |
| 20 | void SpaceShuttleChild::attackSensor(al::HitSensor* self, al::HitSensor* other) {} |
| 21 | |
| 22 | bool SpaceShuttleChild::receiveMsg(const al::SensorMsg* message, al::HitSensor* other, |
| 23 | al::HitSensor* self) { |
| 24 | return false; |
| 25 | } |
| 26 | |
| 27 | void SpaceShuttleChild::exeWait() {} |
| 28 | |