Move dev mode to controller and make commands far more comprehensive #172

Merged
40435022 merged 1 commit from cadhan/dev_mode_controller into dev 2026-03-01 18:03:08 +00:00
40435022 commented 2026-03-01 04:22:24 +00:00 (Migrated from gitlab.eeecs.qub.ac.uk)

Moved dev mode logic to its own controller. Additionally, filled out the full dev mode command list. The commands are split into categories as follows:

Player and Turn Controls

  • Set Current Player
  • Set Player Status
  • Set Player Balance
  • Adjust Player Balance
  • Set Player Position
  • Move Current Player By Spaces
  • Run N Automatic Turns
  • Advance To Next Player
  • Bankrupt Current Player
  • Bankrupt Chosen Player
  • Force End Round

Meters and Climate

  • Set Carbon %
  • Set Temperature %
  • Set Carbon Absolute Level
  • Set Temperature Absolute Level
  • Adjust Carbon %
  • Adjust Temperature %
  • Toggle Carbon Meter Freeze
  • Toggle Temperature Meter Freeze
  • Apply Meter Preset
  • Recalculate Win Flag From Meters

Economy and Properties

  • Set Mutual Fund Balance
  • Adjust Mutual Fund Balance
  • Set Property Owner
  • Clear Property Owner
  • Set Property Expansion Level
  • Trigger Property On-Land For Player
  • Credit Player
  • Debit Player

Board and Square Simulation

  • Teleport Current Player To Square
  • Trigger Current Square On-Land
  • Trigger Selected Square On-Land
  • Trigger Selected Square On-Pass

Cards, Policies and Events

  • Apply Chance Card Effect
  • Apply Random Chance Card
  • Apply Policy Effect
  • Trigger Random Law Violation
  • Trigger Selected Law Violation
  • Grant Investment To Player

Game State and Scenarios

  • Check Game State
  • Set Stable/Cooling Rounds
  • Set Rounds Completed
  • Set Win Condition Flag
  • Force Win State
  • Force Loss (Temperature 100%)
  • Force Loss (>=50% Bankrupt)
  • Set Game Over Lock
  • Reset Game Over Lock
  • Evaluate Game State

UI Utilities

  • Open Board Map
  • Open Settings Popup
  • Show Dev Shortcut Help
Moved dev mode logic to its own controller. Additionally, filled out the full dev mode command list. The commands are split into categories as follows: Player and Turn Controls - Set Current Player - Set Player Status - Set Player Balance - Adjust Player Balance - Set Player Position - Move Current Player By Spaces - Run N Automatic Turns - Advance To Next Player - Bankrupt Current Player - Bankrupt Chosen Player - Force End Round Meters and Climate - Set Carbon % - Set Temperature % - Set Carbon Absolute Level - Set Temperature Absolute Level - Adjust Carbon % - Adjust Temperature % - Toggle Carbon Meter Freeze - Toggle Temperature Meter Freeze - Apply Meter Preset - Recalculate Win Flag From Meters Economy and Properties - Set Mutual Fund Balance - Adjust Mutual Fund Balance - Set Property Owner - Clear Property Owner - Set Property Expansion Level - Trigger Property On-Land For Player - Credit Player - Debit Player Board and Square Simulation - Teleport Current Player To Square - Trigger Current Square On-Land - Trigger Selected Square On-Land - Trigger Selected Square On-Pass Cards, Policies and Events - Apply Chance Card Effect - Apply Random Chance Card - Apply Policy Effect - Trigger Random Law Violation - Trigger Selected Law Violation - Grant Investment To Player Game State and Scenarios - Check Game State - Set Stable/Cooling Rounds - Set Rounds Completed - Set Win Condition Flag - Force Win State - Force Loss (Temperature 100%) - Force Loss (>=50% Bankrupt) - Set Game Over Lock - Reset Game Over Lock - Evaluate Game State UI Utilities - Open Board Map - Open Settings Popup - Show Dev Shortcut Help
40435022 commented 2026-03-01 04:22:24 +00:00 (Migrated from gitlab.eeecs.qub.ac.uk)

requested review from @40457809, @40441512, @40441188, @40446360, @40444856, and @40439721

requested review from @40457809, @40441512, @40441188, @40446360, @40444856, and @40439721
40435022 commented 2026-03-01 04:22:24 +00:00 (Migrated from gitlab.eeecs.qub.ac.uk)

assigned to @40435022

assigned to @40435022
40457809 (Migrated from gitlab.eeecs.qub.ac.uk) approved these changes 2026-03-01 04:22:24 +00:00
40457809 commented 2026-03-01 13:00:28 +00:00 (Migrated from gitlab.eeecs.qub.ac.uk)

approved this merge request

approved this merge request
40435022 commented 2026-03-01 18:03:09 +00:00 (Migrated from gitlab.eeecs.qub.ac.uk)

mentioned in commit b32fe0ff8f

mentioned in commit b32fe0ff8fef2458fa16d0fff0053261c8bbf216
40435022 (Migrated from gitlab.eeecs.qub.ac.uk) merged commit b32fe0ff8f into dev 2026-03-01 18:03:09 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
owenryan/carbonopoly!172
No description provided.