Property Module
The Property module defines and manages all purchasable spaces on the Property Tycoon game board, including streets, stations, and utilities. It handles property ownership, rent calculations, development with houses and hotels, mortgaging, and trading. This module serves as the backbone for the economic aspects of the game.
High-Level Design
Use Case Diagram
Illustrates the primary interactions involving properties from a player’s perspective.
Property Module Use Cases
Domain Model
Shows the core Property concept and its relationship with an Owner (presumably a Player).
Property Domain Model
Detailed Design
Class Diagram
Details the attributes and methods of the Property class.
Property Class Diagram
State Diagram
Models the lifecycle and states of a property.
Property State Diagram
Sequence Diagrams
Calculating Rent (Street Property)
Sequence Diagram: Calculate Street Rent
Calculating Rent (Station)
Sequence Diagram: Calculate Station Rent
Building a House
Sequence Diagram - Building a House
Mortgaging a Property
Sequence Diagram - Mortgaging a Property
Key Classes Overview
Property: Represents a single purchasable tile on the board. It stores its attributes (name, group, price, rent values, development costs), current state (owner, houses, hotel, mortgaged), and provides methods for calculating rent based on complex rules, managing development (building/selling houses/hotels), and handling mortgaging. It interacts implicitly with a Player class for ownership and transactions.