Update RandomEventLogic.java
This commit is contained in:
@@ -14,6 +14,10 @@ public class RandomEventLogic extends Player{
|
|||||||
setPlayer(playerDummy);
|
setPlayer(playerDummy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method that generates a random number and based on that number, a random event happens.
|
||||||
|
*
|
||||||
|
*/
|
||||||
public int[] randEvent() {
|
public int[] randEvent() {
|
||||||
Random rand = new Random();
|
Random rand = new Random();
|
||||||
int itemPrice;
|
int itemPrice;
|
||||||
|
|||||||
Reference in New Issue
Block a user