Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1. public class Item
  2. {
  3.     public virtual void Loot()
  4.     {
  5.     }
  6. }
  7.  
  8. public class Gold : Item
  9. {
  10.     override void Loot()
  11.     {
  12.         player.money += 5000;
  13.     }
  14. }
  15.  
  16. public class Weapon : Item
  17. {
  18. }
  19.  
  20. public class Sword : Weapon
  21. {
  22. }
  23.  
  24. public class Mace : Weapon
  25. {
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement