package com.lucasdnd.ags.gameplay.market; /** * Products available for sale. This includes consoles and games. * @author tulio * */ public abstract class Product { protected int id; // The id of the product protected String name; // Name of the product for sale protected int price; // Price of the product protected long releaseDate; // The release date of the product protected int totalProfit; // The Total Profit this Product has generated to the Player public Product(int id, String name, int price, long releaseDate) { this.id = id; this.name = name; this.price = price; this.releaseDate = releaseDate; totalProfit = 0; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getPrice() { return price; } public void setPrice(int price) { this.price = price; } public long getReleaseDate() { return releaseDate; } public void setReleaseDate(long releaseDate) { this.releaseDate = releaseDate; } public int getId() { return id; } public void setId(int id) { this.id = id; } public int getTotalProfit() { return totalProfit; } public void setTotalProfit(int totalProfit) { this.totalProfit = totalProfit; } }