MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / UnitAction

Method UnitAction

Source/Platformer/UnitAction.cpp:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37StringMap<Own<UnitActionDef>> UnitAction::_actionDefs;
38
39UnitAction::UnitAction(String name, int priority, bool queued, Unit* owner)
40 : _name(name)
41 , _priority(priority)
42 , _queued(queued)
43 , _doing(false)
44 , _status(Behavior::Status::Failure)
45 , _owner(owner)
46 , reaction(0.0f)
47 , _elapsedTime(0.0f)
48 , _sensity(_owner->getUnitDef()->get(ActionSetting::Sensity, 0.0f)) { }
49
50UnitAction::~UnitAction() {
51 _owner = nullptr;

Callers

nothing calls this directly

Calls 2

getUnitDefMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected