Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Player
- {
- private int life;
- private int endurance;
- private int life_total()
- {
- return life + endurance;
- }
- public Player()
- {
- life = 10;
- endurance = 2;
- }
- public int get_life_total()
- {
- return life_total()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement