Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package test;
- public class Dec {
- public class Player {
- private int hp;
- private int blood;
- private String Name;
- public Player()
- {
- hp = 0;
- blood = 0;
- Name = "player";
- }
- public int _Getblood()
- {
- return blood;
- }
- public int _Gethp()
- {
- return hp;
- }
- public String _Getname()
- {
- return Name;
- }
- public void _Setblood(int bl)
- {
- blood = bl;
- }
- public void _Sethp(int h)
- {
- hp = h;
- }
- public void _Setname(String n)
- {
- Name = n;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement