Riley As Programmed In C++

back to filk list
by Gudanov

class Riley : public Human {
private:
CSoul *m_soul;
CPersonality *m_personality;
CDemon *m_demon;
public:
Riley() {
m_soul = new CSoul();
m_personality = ::GetStockPersonality( CORN_FED | SOLDIER_BOY );
m_demon = NULL;
}
ProcessEvent(const CEvent& event) {
if (event.Emotion === CEmotion::Tense) {
ClenchJaw();
}
else {
if ( ((int)(10 * rand())) < 2 ) {
RemoveShirt();
}
else {
m_personality->ProcessEvent(event);
}
}
}
};

| back to top |

back to filk list