Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MC
- {
- private int x, y, hp, cHP, inv, fw, open;
- private Weapon current, secondary;
- public MC()
- {
- x = 10;
- y = 10;
- hp = 10;
- cHP = hp;
- inv = 10;
- fw = 1;
- open = 8;
- current = new Weapon(100,2,2,3,"clank",0);
- secondary = new Weapon();
- }
- public MC(int ex, int why, int eichpee, int invntry, int whatIsThisEvenIForgotButItIsSomehowSignificant, int openMid, Weapon bork, Weapon shiv)
- {
- x = ex;
- y = why;
- hp = eichpee;
- cHP = hp;
- fw = whatIsThisEvenIForgotButItIsSomehowSignificant;
- open = openMid;
- current = bork;
- secondary = shiv;
- }
- //accessor methods
- public int getX()
- {
- return x;
- }
- public int getY()
- {
- return y;
- }
- public int getHP()
- {
- return hp;
- }
- public Weapon getWeapon()
- {
- return current;
- }
- public Weapon getSecondary()
- {
- return secondary;
- }
- public int getOpen()
- {
- return open;
- }
- //editor methods
- public void setX(int a)
- {
- x = a;
- }
- public void setY(int a)
- {
- y = a;
- }
- public void setHP(int a)
- {
- hp = a;
- }
- public void setWeapon(Weapon a)
- {
- current = a;
- }
- public void setSecondary(Weapon a)
- {
- secondary = a;
- }
- public void setOpen(int a)
- {
- open = a;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement