|
Player12
An open source football management simulator
|
Represents a player listed on the transfer market. More...
#include <transfer_listing.h>
Public Member Functions | |
| TransferListing (PlayerID pid, TeamID seller, uint32_t price, GameDateValue date, float attention=0.0f) | |
| Constructs a new TransferListing with bid state cleared. | |
| TransferListing ()=default | |
| Default constructor for map/serialization use. | |
Public Attributes | |
| PlayerID | player_id |
| TeamID | seller_team_id |
| uint32_t | asking_price |
| GameDateValue | listing_date |
| std::optional< TeamID > | highest_bidder_id |
| uint32_t | highest_bid = 0 |
| float | attention_score = 0.0f |
Represents a player listed on the transfer market.
Tracks the asking price, listing date, and the current highest bid (if any). Owned by GameController as part of the transfer_listings map.
| TransferListing::TransferListing | ( | PlayerID | pid, |
| TeamID | seller, | ||
| uint32_t | price, | ||
| GameDateValue | date, | ||
| float | attention = 0.0f |
||
| ) |
Constructs a new TransferListing with bid state cleared.
| pid | Player ID. |
| seller | ID of the selling team. |
| price | Asking price in currency units. |
| date | Date the listing was created. |
| attention | The pre-calculated attention score. |
|
default |
Default constructor for map/serialization use.
| uint32_t TransferListing::asking_price |
| float TransferListing::attention_score = 0.0f |
| uint32_t TransferListing::highest_bid = 0 |
| std::optional<TeamID> TransferListing::highest_bidder_id |
| GameDateValue TransferListing::listing_date |
| PlayerID TransferListing::player_id |
| TeamID TransferListing::seller_team_id |