Advertisement
Guest User

ForGrant

a guest
Jan 22nd, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. enum NPCType {Friendly, Enemy};
  2. enum Rank {1, 2, 3};
  3. enum Class {Warrior, Rogue, Mage, Archer, Cleric};
  4. enum Gender{Male, Female};
  5.  
  6. class BirdMan::Enemy
  7. {
  8.     NPCType birdman_type = Enemy;
  9.     Rank birdman_rank = 1;
  10.     Class birdman_class = Warrior;
  11.     Gender birdman_gender = Male;
  12.     int MalesKilled = 0;
  13. };
  14.  
  15. int main()
  16. {  
  17.     // if the player kills a male birdman, increment the
  18.     if(Birdman.IsDead() && Birdman.birdman_gender == Male)
  19.     {
  20.         ++MalesKilled;    
  21.     }
  22.    
  23.     if(MalesKilled == 20)
  24.     {
  25.         AwardSkillPoint();
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement