public TableBorder(IBallObserver observer, int x, int y, int width, int height, ForcedDirection direction) { this.observer = observer; this.x = x; this.y = y; this.width = width; this.height = height; this.direction = direction; }
public Ball(string id, IBallObserver observer, int x, int y, string soundLocation, string pocketSound, Image image, int points) { CosBall45 = (int)(Math.Cos(Math.PI / 4) * Ball.Radius); this.id = id; this.observer = observer; width = 32; height = 32; this.initPosition = new Vector2D(x, y); this.position.X = x; this.position.Y = y; lastX = x; lastY = y; this.image = image; this.points = points; }