Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A message from the underworld :)
- class JobOpportunity
- {
- public:
- enum class Satisfaction { Low, Medium, High, TheBest };
- void SetCompany(std::string company);
- void SetExpectedSatisfaction(Satisfaction satisfaction);
- };
- void TakeTheNextStep()
- {
- auto opportunity = std::make_unique<JobOpportunity>();
- opportunity->SetCompany("Magneti Marelli");
- opportunity->SetExpectedSatisfaction(JobOpportunity::Satisfaction::TheBest);
- ScheduleAnInterview(*opportunity);
- }
- void SetupSuccessfulCareer(Career& c)
- {
- // Setup event callbacks
- c.ReadyForAGreatExperience.push_back(TakeTheNextStep);
- c.StagnantCareer.push_back(TakeTheNextStep);
- c.NotFeelingImportant.push_back(TakeTheNextStep);
- c.NotDoingSomethingInteresting.push_back(TakeTheNextStep);
- }
- int main()
- {
- Career c;
- SetupSuccessfulCareer(c);
- return RunCareerMainLoop(c);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement