SiedlerGame and general model implementation #16
No reviewers
Labels
No labels
bug
ci
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: SlothBusters/gruppe02-slothbusters-projekt3-catan#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "siedlergame-implementation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #2
@ -22,0 +48,4 @@* An array of current {@link Player} objects in the game.*/private Player[] players;javadoc
@ -47,3 +107,4 @@}}/**In case Faction is modified
@ -61,8 +122,11 @@ public class SiedlerGame {* @return the list with player's factionsA getCurrentPlayer method will be useful for functions with the game logic in them.
@ -0,0 +5,4 @@** @author Jonas Costa*/public enum ActionType {javadoc
@ -0,0 +5,4 @@** @author Jonas Costa*/public class SiedlerCity extends SiedlerSettlement {javadoc
@ -0,0 +60,4 @@return diceValue == other.diceValue && fieldType == other.fieldType;}?
@ -0,0 +5,4 @@** @author Jonas Costa*/public class SiedlerSettlement extends SiedlerStructure {javadoc
getResourceCount() doesn't exist inn SiedlerSettlement and SiedlerCity
@ -0,0 +5,4 @@** @author Jonas Costa*/public class SiedlerStreet extends SiedlerSettlement{javadoc
@ -0,0 +7,4 @@** @author Jonas Costa*/public abstract class SiedlerStructure {javadoc
@ -0,0 +43,4 @@SiedlerStructure other = (SiedlerStructure) obj;return Objects.equals(owner, other.owner);}please generate the hashcode and equals methods
Looks good, apart from the two places where the Javadoc is missing.
But let's still merge it, so others aren't blocked by this.
@ -0,0 +10,4 @@* The player wants to trade with the bank (trading with other players or ports* isn't supported)*/TRADE,javadoc of the individual enum would probably be useful.
For example:
/**
*/
TRADE,
@ -0,0 +13,4 @@/*** Specifies what type of field this is.*/private Land fieldType;java doc
SiedlerBoard's generic types aren't correct.
The field type should be
SiedlerField, the cornersSiedlerSettelementand the edgesSiedlerStreets. The field annotations could be set to the typeVoidas we currently aren't planing using this feature (correct?).publicshould be in front ofstaticLooks alright