-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And this file is also needed for the previous commit.
- Loading branch information
1 parent
24ece9f
commit dbfc162
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env python | ||
|
||
class Profession(object): | ||
""" | ||
Holds the information relevant for a profession. | ||
Has self.Name, a string with the name of the profession, | ||
and self.Costs, a list of (SkillName,CostList) tuples. | ||
""" | ||
def __init__(self,Name): | ||
self.Name = Name | ||
self.Costs = [] | ||
def AddCost(self,Name,Costs): | ||
self.Costs.append((Name,Costs)) |