package avs.models;

import avs.utils.Textures;

import java.awt.image.*;
import java.awt.*;

import javax.swing.*;

public abstract class Plant {
	private boolean isAlive;
    protected int cost;

    public Plant(Textures texx) {
        super(texx);
        this.isAlive = true;
    }

	public Plant(double x, double y, Textures texx){
		super(x, y, texx);
		this.isAlive = true;
	}

	public boolean isAlive(){
		return this.isAlive;
	}

	public void setIsAlive(boolean isAlive){
		this.isAlive = isAlive;
	}

    public int getCost() {
        return this.cost;
    }
}

@@ -138,17 +138,73 @@
 s Plant 
-%7B
+extends Entity %7B%0A    protected BufferedImage%5B%5D animation;
 %0A%09privat
@@ -264,16 +264,40 @@
 c Plant(
+int w, int h, int cost, 
 Textures
@@ -326,16 +326,42 @@
 (texx);%0A
+        this.cost = cost;%0A
         
@@ -421,16 +421,40 @@
 ouble y,
+ int w, int h, int cost,
  Texture
@@ -476,21 +476,53 @@
 r(x, y, 
-texx)
+w, h, texx);%0A        this.cost = cost
 ;%0A%09%09this

Create new constructors.