Components
The application consists of 7 Activities:
- Activation of players and setting incomes - main
- Setting prices
- Summary of Results
- Personal player page
- Cassa
- Saving states
- Help
In addition there are 4 "DialogActivities" (which means these Activities are organized into a dialog-like layout instead of a full screen content view):
- No Players warning
- Duty alarm
- Payment - through personal page
- Selection of insurance type to claim
Other Java classes
The Activities are supported by a simple java class that
- manages the shared variables,
- defines shared methods,
- defines the functions of the Cassa
- defines methods simplifying resource access
- defines methods simplifying preference managing
- defines methods manipulating the UI (hiding/revealing views)
The following 6 events required personalized Listener class:
- Player activator button click
- Person selection - for navigate to Personal page from Result's summary
- Cassa color pick button click
- Cassa number button click
- Insurance type button click
- Property checkbox click
The app also includes 2 TextWatcher classes:
- One to reformat the appearances of text in the input fields of the income and price setting Activities into decimal format(separating the characters with a white space after each thousand).
- The other one hides or reveals the add button following the input field of other properties in the Saving game state Activity. As the edit text view fills with characters inserted the button reveals but when the input field has no character typed in the add button is hidden.
In addition there are 2 more java classes created:
- The class representing a Person, who has a bank account balance, also 6 possible duties such as loan on house or car and 4 different types of insurances. A person can earn or spend money from their bank account, pay their different type of duties, claim insurance after insurance event. There ore also options for data query about each of these financial informations.
- The repesentation of a saved state is the collection of all the belongings of a player that are represented with actual assets of the game. Since the application automatically saves all the data connected to a Person representation, there is no need to worry about saving those.
The players tagged by the color of their puppet on the board so even adding player name to the saved state is optional, but highly recommended. Beside the color and the name, the saved state contains the amount of the cash earned, the furniture, electronics and all the items possibly collected during the game in the form of cards.
Operation
Coming soon..
Permissions
Coming soon..
Resources
Layout resource files were created basically using the Android Studios's design view tool. Multiplication of components and other smaller changes were made by editing the XML file in text view.
Menu resource files were created by editing the XML file in text view.
The app does not support different screen sizes and is not compatible with Wear OS or Smart TV-s.
The default language is English but Hunigarian language is also provided as a Local.
The layouts use only Android built-in drawables or drawables designed by me.
The app and the dialog app themes, also the basic text and button appearances are defined in the styles.xml resource file.
The colors used by the application are defined in the colors.xml resource file.
The default income and price values are chosen according to the rules of the original table game. These values are defined in the integers.xml resource file.