Skip to content

Commit 7975fd3

Browse files
committed
Changed NPC to CharacterStats
1 parent 36ea5c1 commit 7975fd3

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

assignments/prototypes.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Object oriented design is commonly used in video games. For this part of the assignment
33
you will be implementing several classes with their correct inheritance heirarchy.
44
5-
In this file you will be creating three classes: GameObject, NPC, Humanoid.
5+
In this file you will be creating three classes: GameObject, CharacterStats, Humanoid.
66
At the bottom of this file are 3 objects that all inherit from Humanoid. Use the objects at the bottom of the page to test your classes.
77
88
Each class has unique properites and methods that are defined in their block comments below:
@@ -16,7 +16,7 @@
1616
*/
1717

1818
/*
19-
=== NPC ===
19+
=== CharacterStats ===
2020
* hp
2121
* name
2222
* takeDamage() // prototype method -> returns the string '<object name> took damage.'
@@ -29,14 +29,14 @@
2929
* weapons
3030
* language
3131
* greet() // prototype method -> returns the string '<object name> offers a greeting in <object language>.'
32-
* should inherit destroy() from GameObject through NPC
33-
* should inherit takeDamage() from NPC
32+
* should inherit destroy() from GameObject through CharacterStats
33+
* should inherit takeDamage() from CharacterStats
3434
*/
3535

3636
/*
37-
* Inheritance chain: Humanoid -> NPC -> GameObject
38-
* Instances of Humanoid should have all of the same properties as NPC and GameObject.
39-
* Instances of NPC should have all of the same properties as GameObject.
37+
* Inheritance chain: Humanoid -> CharacterStats -> GameObject
38+
* Instances of Humanoid should have all of the same properties as CharacterStats and GameObject.
39+
* Instances of CharacterStats should have all of the same properties as GameObject.
4040
*/
4141

4242
//Test you work by uncommenting these 3 objects and the list of console logs below:

0 commit comments

Comments
 (0)