forked from dirkriehle/wahlzeit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Almir Vucetovic
committed
Jan 17, 2022
1 parent
837ad61
commit e42205b
Showing
5 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.wahlzeit.model; | ||
|
||
public class Game { | ||
|
||
protected GameType gameType = null; | ||
|
||
public Game(GameType gt){ | ||
gameType = gt; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.wahlzeit.model; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class GameManager { | ||
|
||
protected ArrayList<GameType> gameTypes; | ||
|
||
public GameManager(){ | ||
|
||
} | ||
|
||
public void addType(GameType gt){ | ||
gameTypes.add(gt); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.wahlzeit.model; | ||
|
||
public class GameType { | ||
|
||
String type; | ||
|
||
GameType(String type){ | ||
this.type = type; | ||
} | ||
|
||
public boolean isSubtype(GameType other){ | ||
return other instanceof GameType; | ||
} | ||
} |