public RiverFlow(int x, int y, int width, int height, int margin, IconDirections direction) { this.x = ox = x; this.y = oy = y; this.width = width; this.height = height; this.margin = margin; this.direction = direction; }