JernejHabjan / TrumpDefense2020

Visual representation of RTS game, supported by deep reinforcement learning algorithm Alpha Zero written in python.
https://jernejhabjan.github.io/TrumpDefense2020/
MIT License
6 stars 1 forks source link

Implement Save Game #18

Closed JernejHabjan closed 6 years ago

JernejHabjan commented 6 years ago

SaveGame:

Class that retrieves this data - GS_MyGS
SaveGame -> SG_NewSaveGame

Players{
    money: ___
    race: ___
    startPos: ____
    minimap_texture/state - light gray areas

    characters{
        health,
        position,
        Stamina
        currentAction{
            OrderType,

            targetLocation,

            AIState,
            OccupationType,
        }
    }
    buildings{
        health,
        position,
    }

    constrProxy{
        displayMesh
        workTimeSpent
        builtClass,
        InstaPay,
        goldSpent

    }

    currentlyProducingUnits -array of classes to build

},

otherObject{
    minerals{
        1: {
            position
            remaining resources

        }
    }

},

Game{
    timeRemaining: ____
    IngameTime: ____
    gameSpeed: ___
    timeUnit: ___
    enableStamina,
    EnableCriticalStamina
    AutomaticallyCheckJob

}