/* * Dungeon.java * * Created on 25. April 2007, 23:10 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ /** * * @author Cadoc */ public class Dungeon { String name; int futterkontingent, festigkeit; /** Creates a new instance of Dungeon */ public Dungeon(String name, int futterkontingent, int festigkeit) { this.name = name; this.futterkontingent = futterkontingent; this.festigkeit = festigkeit; } public void isValidDungeon() throws InvalidDungeonException { if(this.futterkontingent <= 0 || this.festigkeit <= 0) { throw new InvalidDungeonException("UNGUELTIGER DUNGEON", this); } } }