Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #pragma once
  2. #include "RandomHelper.h"
  3. class Item
  4. {
  5. public:
  6. Item();
  7. Item(int _value, int _weight);
  8. ~Item();
  9.  
  10. int GetCriticalWeight();
  11. void SetCriticalWeight(int _cw);
  12. int GetValue() { return value; }
  13. int GetWeight() { return weight; }
  14.  
  15. private:
  16. int value;
  17. int weight;
  18.  
  19. static int criticalWeight;
  20.  
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement