We also made Board class in UI as a Thread by implementing Runnable interface because the movement and animation of the pawns take place on the Board in UI and animation is done by using Thread.sleep method.A ServerInfo class has been added in order to maintain the connection between multiple computers.We added also a rentIndex to PropertySquare to show which rent now is the current rent in the rent list. Constructors of various classes have been modified, depending on their needs.Īdditionally, PropertySquare now has a list of rent such as rent without building anything or rent of the property in the case that there is one house built etc.Several changes to methods of the Observer interface have been made, and several methods have been added to the GameEngine and UI classes in order to correctly subscribe, publish, and perform events.For example, DiceDisplay and PlayerPanel subscribed to GameEngine, and GameEngine is publishing by publisEvent(message) method and all observers's onEvent(message) methods are being called, then observers are doing something or not according to the message inside publishEvent method.Square (Various Square types such as Go to Jail, Go, Bonus, Reverse Direction, Roll 3, and Luxury Tax.) When new messages are added, they are first fitted into the message box screen and after a certain number of messages, the messages are displayed in a scrollable panel. Lastly, on the bottom left part of the game window screen, there is a Message Box Panel. When the names of the players are clicked, several information about them are displayed such as the Player name, Money, Owned properties and Owned utilities. The name of the players are displayed as buttons on a scrollable panel. Player panel is on the right side of the Button Panel. Above the button panel, we have Dice Panel. Improve Property button is used to upgrade a property. Draw Card button is below the Buy Property button, it is used to draw an action card, such as a Community Chest Card or a Chance Card. The button becomes unpressable if the square that the player on is not a property square or if the property square is already owned. Buy Property button is used to buy an unowned property. Roll Button is used to roll dice and move the player. In the middle part, we have the Button Panel. The board is displayed on the left side of the screen. The game starts after the Start Game button is clicked. Regardless of whether you create a new game or join to an already established game, in the server screen two options are displayed: Start Game and Quit Server. So, if the game is played between different computers, their IP addresses should be known. If you click on the Join Server button instead, the address that you want to join into will be asked. You can either start a new server by clicking the Start Server button or join to an already existing server by clicking the Join Button.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |