# Path: l5r/models/advances.py
# class Advancement(object):
#     BUY_FOR_FREE = False
# 
#     @staticmethod
#     def set_buy_for_free(flag):
#         Advancement.BUY_FOR_FREE = flag
#         log.rules.info(u"set buy for free? %s", Advancement.BUY_FOR_FREE)
# 
#     @staticmethod
#     def get_buy_for_free():
#         return Advancement.BUY_FOR_FREE
# 
#     def __init__(self, tag, cost):
#         self.type = tag
#         self.desc = ''
#         self.rule = None
#         self.timestamp = time.time()
# 
#         if Advancement.get_buy_for_free():
#             self.cost = 0
#         else:
#             self.cost = cost
# 
#     def __str__(self):
#         return self.desc


from l5r.models.advances import Advancement
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
__author__ = 'Daniele'



class Rank(Advancement):
    def __init__(self):
        super(Rank, self).__init__('rank', 0)

        # the insight rank
        self.rank = 0
        # this is the current school for this rank
        self.school = None
        # the school rank
        self.school_rank = 0
        # the school optionally replaced by this one
        self.replaced = None
        # skills obtained with the rank advancement
        self.skills = []
        self.skills_to_choose = []
        # emphases to skills ( skill_id => [list] )
        self.emphases = {}
        self.emphases_to_choose = []
        # spells

# Path: l5r/models/advances.py
# class Advancement(object):
#     BUY_FOR_FREE = False
# 
#     @staticmethod
#     def set_buy_for_free(flag):
#         Advancement.BUY_FOR_FREE = flag
#         log.rules.info(u"set buy for free? %s", Advancement.BUY_FOR_FREE)
# 
#     @staticmethod
#     def get_buy_for_free():
#         return Advancement.BUY_FOR_FREE
# 
#     def __init__(self, tag, cost):
#         self.type = tag
#         self.desc = ''
#         self.rule = None
#         self.timestamp = time.time()
# 
#         if Advancement.get_buy_for_free():
#             self.cost = 0
#         else:
#             self.cost = cost
# 
#     def __str__(self):
#         return self.desc


# Path: l5r/models/advancements/rank.py
from l5r.models.advances import Advancement

# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
__author__ = 'Daniele'



class Rank(Advancement):
    def __init__(self):
        super(Rank, self).__init__('rank', 0)

        # the insight rank
        self.rank = 0
        # this is the current school for this rank
        self.school = None
        # the school rank
        self.school_rank = 0
        # the school optionally replaced by this one
        self.replaced = None
        # skills obtained with the rank advancement
        self.skills = []
        self.skills_to_choose = []
        # emphases to skills ( skill_id => [list] )
        self.emphases = {}
        self.emphases_to_choose = []
        # spells

        self.spells = []