This repository has been archived on 2025-06-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
prog2-catan/src/de/sus/world/Field.java
2025-06-06 19:22:24 +02:00

29 lines
No EOL
681 B
Java

package de.sus.world;
/**
* Implements the map's fields
* @author Michael Rodin
* @version 2025-06-10
*/
public class Field {
/** The type of resource this field provides */
private Resource type;
/** The rolled number the field activates on */
private int rollnumber;
/**
* Constructor
* @author Michael Rodin
* @param type the field's type
* @param number the number that needs to be rolled to be activated
*/
public Field(Resource type, int number) {
this.type = type;
this.rollnumber = number;
}
@Override
public String toString() {
return this.type + " " + this.rollnumber;
}
}