blob: b882585318b4ffb8f39a7a94cdbee73a78860758 [file] [log] [blame]
Comran Morshed2f7b4672016-01-23 14:27:34 +00001#ifndef Y2016_ACTORS_SUPERSTRUCTURE_ACTOR_H_
2#define Y2016_ACTORS_SUPERSTRUCTURE_ACTOR_H_
3
4#include <memory>
5
6#include "aos/common/actions/actor.h"
7#include "aos/common/actions/actions.h"
8#include "y2016/actors/superstructure_action.q.h"
9
10namespace y2016 {
11namespace actors {
12
13class SuperstructureActor
14 : public ::aos::common::actions::ActorBase<SuperstructureActionQueueGroup> {
15 public:
16 explicit SuperstructureActor(SuperstructureActionQueueGroup* s);
17
18 bool RunAction(const actors::SuperstructureActionParams& params) override;
19};
20
21using SuperstructureAction =
22 ::aos::common::actions::TypedAction<SuperstructureActionQueueGroup>;
23
24// Makes a new SuperstructureActor action.
25::std::unique_ptr<SuperstructureAction> MakeSuperstructureAction(
26 const ::y2016::actors::SuperstructureActionParams& params);
27
28} // namespace actors
29} // namespace y2016
30
31#endif // Y2016_ACTORS_SUPERSTRUCTURE_ACTOR_H_