# Contains all mutable data in the game (i.e. the game state, player stats, etc) in one place.

python early:
    # default game preferences
    config.save_directory = "Dinocracy [Prototype]-1296704815"
    config.savedir = "./savedata/"
    config.default_fullscreen = False
    config.default_text_cps = 0

init python :
    class Player():
         # game state variables displayed with player
        __player_name = "Player Name"
        __month = 1
        __day = 0
        __MAX_STAT = 100
        
        # Player's stats / items / etc
        __stats = {}
        __stats['money'] = 10
        __stats['charm'] = 10
        __stats['intelligence'] = 10
    
        #def __init__(self):
            #default values defaulted above
   
        def setName(self, _name):
            self.__player_name = _name
            
        def getName(self):
            return self.__player_name
            
        def incrementDay(self):
            self.__day += 1
            if self.__day > 30:
                self.__month += 1
                self.__day = 1
                
        def getDay(self):
            return self.__day
        
        def changeStats(self, _stat, _delta):
            self.__stats[_stat] += _delta
            if self.__stats[_stat] > self.__MAX_STAT:
                self.__stats[_stat] = self.__MAX_STAT
        
        # Returns the player's stats
        def getStats():
            return self.__stats

