-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Randomized retrieval of reverse cards
- Loading branch information
1 parent
ff8c55c
commit dca57b3
Showing
11 changed files
with
201 additions
and
133 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,19 +1,30 @@ | ||
namespace tarot{ | ||
public class TarotCard : ICard{ | ||
public enum Orientation{ | ||
Upright, | ||
Reverse | ||
} | ||
|
||
public class TarotCard{ | ||
public readonly string Name; | ||
public readonly string Keywords; | ||
public readonly string KeywordsUpright; | ||
public readonly string KeywordsReverse; | ||
|
||
public TarotCard(string name, string keywords){ | ||
public TarotCard(string name, string keywordsUpright, string keywordsReverse){ | ||
this.Name = name; | ||
this.Keywords = keywords; | ||
this.KeywordsUpright = keywordsUpright; | ||
this.KeywordsReverse = keywordsReverse; | ||
} | ||
|
||
public string GetName(){ | ||
return Name; | ||
} | ||
|
||
public string GetKeywords(){ | ||
return Keywords; | ||
public string GetKeywords(Orientation orientation = Orientation.Upright){ | ||
if(orientation is Orientation.Upright){ | ||
return KeywordsUpright; | ||
}else{ | ||
return KeywordsReverse; | ||
} | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.