Last active
January 31, 2020 09:12
-
-
Save devbyray/d55e08798106f0ae10ea7bf05af9d60b to your computer and use it in GitHub Desktop.
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
// Build character functionality for Lord of the Rings game | |
enum CharacterType { | |
NONE = 'none', | |
HOBBIT = 'hobbit', | |
ELF = 'elf', | |
} | |
class Character { | |
public armour: number = 100; | |
public height: number = 0 | |
public width: number = 0 | |
public weight: number = 0 | |
public type: CharacterType = CharacterType.NONE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment