public ball(int owner) { this.xMove = 0; this.yMove = 0; this.state = pickState.onPlayer; this.owner = owner; }
public void fire(double x, double y, double strength, double dir) { this.x = x + Form1.Rot2Point(dir, "x") * 50 - 5; this.y = y + Form1.Rot2Point(dir, "y") * 50 - 5; this.xMove = Form1.Rot2Point(dir, "x") * strength; this.yMove = Form1.Rot2Point(dir, "y") * strength; this.state = pickState.onGround; this.owner = -1; }