Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum NPCType {Friendly, Enemy};
- enum Rank {1, 2, 3};
- enum Class {Warrior, Rogue, Mage, Archer, Cleric};
- enum Gender{Male, Female};
- class BirdMan::Enemy
- {
- NPCType birdman_type = Enemy;
- Rank birdman_rank = 1;
- Class birdman_class = Warrior;
- Gender birdman_gender = Male;
- int MalesKilled = 0;
- };
- int main()
- {
- // if the player kills a male birdman, increment the
- if(Birdman.IsDead() && Birdman.birdman_gender == Male)
- {
- ++MalesKilled;
- }
- if(MalesKilled == 20)
- {
- AwardSkillPoint();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement