Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other util functions #21

Open
awi2d opened this issue Nov 2, 2023 · 0 comments
Open

Other util functions #21

awi2d opened this issue Nov 2, 2023 · 0 comments

Comments

@awi2d
Copy link
Contributor

awi2d commented Nov 2, 2023

All util functions that I currently have no classification for

  • send explorer/colony/conquestador
    • sendExplorer(Power) : void
    • sendColony(Power) : void
    • sendConquest(Power) : void
  • get/set diplomatic relations. (already implemented, but untested)
    • declareWar(Power, Power) : void
    • declareAlience(Power, Power): void
    • IsAtWar(Power, Power): bool
    • IsAllied(Power, Power): bool
    • IsNeutral(Power, Power): bool //or replace these three functions with getDiploStatus(Power, Powers) : [War, Allied, Neutral]
  • get possible CP actions (depending on power, CP left, and specific conditions)
    • getCPActions(Power) : ? //read CP left and mandatories played from Global variables
  • get information about current Impulse
    • getCurrentImpulsePower() : Power // might be different from active power
    • getCurrentCP() : int
    • setCurrentCP(int) : void
    • decremetCurrentCP(int) : void
  • get/set/increment track positions.
    • getTurnTrackPosition() : int
    • incrementTurnTrack() : void
    • getSTPeterCP() : int
    • incrementSTPeterCP(int amount) : void //including incrementing STPeterVP if applicable
    • setSTPeterCP(int value) : void
    • getTrackPosition(Track) : int // have to decide wether to have one function for all Tracks or seperate functions.
    • incrementTrackPosition(Track, int amount) : void
  • draw/discard cards
    • drawCardsFromDeck(Power, int amount) : void
    • drawCardFromPower(Power, Power, int amount) : void // amount always has to be 1 or 2.
    • discardRandomCard(Power) : void // I cant think of a situation where two cards are discarded.
    • discardCard(Power, CardID) : void
  • add VP token. (new world, war winner, burned/disgraced debators, ...)
    • addVPToken(tokenIDs_VP_MARKER, Power) : void
  • get/set event reminders
    • getEventActive(tokenIDs_EVENT_REMINDER, ?) : bool // might be necessary to make seperate function for all events, as they have different possible locations. (e.g. Printing press is always on the turn track, while Plantations can choose for what power they are)
    • setEventActive(tokenIDs_EVENT_REMINDER, ?, bool) : void
  • add/remove/get minus-one-card token.
  • get current ruler of power.
    • getRuler(Power) : tokenIDs_RULER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant