package de.teamteamteam.spacescooter.gui; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import de.teamteamteam.spacescooter.entity.Entity; public class ShopOffer extends Entity { private String offer; private int bought; private final int max = 15; private final int price; private int currentPrice; private ImageEntity displayPrice; public ShopOffer(int x, int y, int bought, String offer, int price) { super(x, y); this.offer = offer; this.bought = bought; this.price = price; if(bought == 0) this.currentPrice = price; else this.currentPrice = (int) (price+(price*bought*1.36)); this.displayPrice = new ImageEntity(185, y+20, null); if(this.bought