You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: assignments/prototypes.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
/*
2
-
Object oriented design is commonly used in video games. For this part of the assignment
3
-
you will be implementing several classes with their correct inheritance heirarchy.
2
+
Object oriented design is commonly used in video games. For this part of the assignment you will be implementing several constructor functions with their correct inheritance heirarchy.
4
3
5
-
In this file you will be creating three classes: GameObject, CharacterStats, Humanoid.
6
-
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.
4
+
In this file you will be creating three constructor functions: GameObject, CharacterStats, Humanoid.
5
+
6
+
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 constructor functions.
7
7
8
-
Each class has unique properites and methods that are defined in their block comments below:
8
+
Each constructor function has unique properites and methods that are defined in their block comments below:
9
9
*/
10
10
11
11
/*
@@ -105,6 +105,6 @@
105
105
*/
106
106
107
107
// Stretch task:
108
-
// * Create Villian and Hero classes that inherit from the Humanoid class.
108
+
// * Create Villian and Hero constructor functions that inherit from the Humanoid constructor function.
109
109
// * Give the Hero and Villians different methods that could be used to remove health points from objects which could result in destruction if health gets to 0 or drops below 0;
110
110
// * Create two new objects, one a villian and one a hero and fight it out with methods!
0 commit comments