Skip to content

Commit

Permalink
Merge pull request #11 from Forairaaaaa/change-ability-base-api-to-pu…
Browse files Browse the repository at this point in the history
…blic

put ablility base api to public
  • Loading branch information
Forairaaaaa authored Oct 25, 2024
2 parents 1a91d72 + c6063f5 commit 2a2ba6b
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/ability/ability.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ class BasicAbility : public AbilityBase {
return AbilityType_Basic;
}

private:
void baseCreate() override
{
onCreate();
Expand Down Expand Up @@ -142,12 +141,12 @@ class UIAbility : public AbilityBase {
return AbilityType_UI;
}

private:
State_t _current_state = StateForeground;

void baseCreate() override;
void baseUpdate() override;
void baseDestroy() override;

private:
State_t _current_state = StateForeground;
};

/* -------------------------------------------------------------------------- */
Expand Down Expand Up @@ -205,12 +204,12 @@ class WorkerAbility : public AbilityBase {
return AbilityType_Worker;
}

private:
State_t _current_state = StateRunning;

void baseCreate() override;
void baseUpdate() override;
void baseDestroy() override;

private:
State_t _current_state = StateRunning;
};

/* -------------------------------------------------------------------------- */
Expand Down Expand Up @@ -278,13 +277,13 @@ class AppAbility : public AbilityBase {
return AbilityType_App;
}

private:
State_t _current_state = StateSleeping;
AppInfo_t _app_info;

void baseCreate() override;
void baseUpdate() override;
void baseDestroy() override;

private:
State_t _current_state = StateSleeping;
AppInfo_t _app_info;
};

} // namespace mooncake

0 comments on commit 2a2ba6b

Please sign in to comment.