COSC-3P91-Assignments/Assignment 3/src/ChallengeDecision/ChallengeEntity.java

28 lines
715 B
Java

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ChallengeDecision;
/**
*
* @author robson
*/
public abstract class ChallengeEntity<T extends Number, V extends Number> {
public abstract T getProperty();
public abstract void setProperty( T property );
public abstract V getHitPoints();
public abstract void setHitPoints( V value );
public abstract int compare( ChallengeEntity ce );
public abstract FightResult fight( ChallengeEntity<T,V> ce );
public abstract double checkDifference( ChallengeEntity ce );
}