Skip to content

Commit

Permalink
Stub out custom messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybaloney committed Oct 7, 2022
1 parent 236e41a commit 4d7ee5d
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 1 deletion.
42 changes: 41 additions & 1 deletion media/main-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ class BasePetType {
this.currentStateEnum = this.sequence.startingState;
this.currentState = (0, states_1.resolveState)(this.currentStateEnum, this);
this._name = name;
this._speed = speed; // TODO: Add a random modifier (+/- 30%) to this value.
this._speed = speed; // TODO #183 : Add a random modifier (+/- 30%) to this value.
// Increment the static count of the Pet class that the constructor belongs to
this.constructor.count += 1;
}
Expand Down Expand Up @@ -1083,6 +1083,10 @@ class Totoro extends BasePetType {
emoji() {
return '🐾';
}
hello() {
// TODO: #184 Add a custom message for this pe
return ` says hello πŸ‘‹!`;
}
}
exports.Totoro = Totoro;
class Cat extends BasePetType {
Expand Down Expand Up @@ -1158,6 +1162,10 @@ class Cat extends BasePetType {
emoji() {
return '🐱';
}
hello() {
// TODO: #185 Add a custom message for cat
return ` says hello πŸ‘‹!`;
}
}
exports.Cat = Cat;
class Dog extends BasePetType {
Expand Down Expand Up @@ -1221,6 +1229,10 @@ class Dog extends BasePetType {
emoji() {
return '🐢';
}
hello() {
// TODO: #186 Add a custom message for dog
return ` says hello πŸ‘‹!`;
}
}
exports.Dog = Dog;
class Snake extends BasePetType {
Expand Down Expand Up @@ -1274,6 +1286,10 @@ class Snake extends BasePetType {
emoji() {
return '🐍';
}
hello() {
// TODO: #187 Add a custom message for snake
return ` says hello πŸ‘‹!`;
}
}
exports.Snake = Snake;
class Clippy extends BasePetType {
Expand Down Expand Up @@ -1319,6 +1335,10 @@ class Clippy extends BasePetType {
emoji() {
return 'πŸ“Ž';
}
hello() {
// TODO: #188 Add a custom message for clippy
return ` says hello πŸ‘‹!`;
}
}
exports.Clippy = Clippy;
class RubberDuck extends BasePetType {
Expand Down Expand Up @@ -1364,6 +1384,10 @@ class RubberDuck extends BasePetType {
emoji() {
return 'πŸ₯';
}
hello() {
// TODO: #190 Add a custom message for duck
return ` says hello πŸ‘‹!`;
}
}
exports.RubberDuck = RubberDuck;
class Cockatiel extends BasePetType {
Expand Down Expand Up @@ -1409,6 +1433,10 @@ class Cockatiel extends BasePetType {
emoji() {
return '🦜';
}
hello() {
// TODO: #191 Add a custom message for cockatiel
return ` says hello πŸ‘‹!`;
}
}
exports.Cockatiel = Cockatiel;
class Crab extends BasePetType {
Expand Down Expand Up @@ -1454,6 +1482,10 @@ class Crab extends BasePetType {
emoji() {
return 'πŸ¦€';
}
hello() {
// TODO: #192 Add a custom message for crab
return ` says hello πŸ‘‹!`;
}
}
exports.Crab = Crab;
class Zappy extends BasePetType {
Expand Down Expand Up @@ -1499,6 +1531,10 @@ class Zappy extends BasePetType {
emoji() {
return '⚑';
}
hello() {
// TODO: #193 Add a custom message for zappy
return ` says hello πŸ‘‹!`;
}
}
exports.Zappy = Zappy;
class Rocky extends BasePetType {
Expand Down Expand Up @@ -1526,6 +1562,10 @@ class Rocky extends BasePetType {
canChase() {
return false;
}
hello() {
// TODO: #194 Add a custom message for rock
return ` says hello πŸ‘‹!`;
}
}
exports.Rocky = Rocky;
class InvalidPetException {
Expand Down
40 changes: 40 additions & 0 deletions src/panel/pets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,10 @@ export class Totoro extends BasePetType {
emoji(): string {
return '🐾';
}
hello(): string {
// TODO: #184 Add a custom message for this pe
return ` says hello πŸ‘‹!`;
}
}
export class Cat extends BasePetType {
label = 'cat';
Expand Down Expand Up @@ -584,6 +588,10 @@ export class Cat extends BasePetType {
emoji(): string {
return '🐱';
}
hello(): string {
// TODO: #185 Add a custom message for cat
return ` says hello πŸ‘‹!`;
}
}

export class Dog extends BasePetType {
Expand Down Expand Up @@ -647,6 +655,10 @@ export class Dog extends BasePetType {
emoji(): string {
return '🐢';
}
hello(): string {
// TODO: #186 Add a custom message for dog
return ` says hello πŸ‘‹!`;
}
}

export class Snake extends BasePetType {
Expand Down Expand Up @@ -700,6 +712,10 @@ export class Snake extends BasePetType {
emoji(): string {
return '🐍';
}
hello(): string {
// TODO: #187 Add a custom message for snake
return ` says hello πŸ‘‹!`;
}
}

export class Clippy extends BasePetType {
Expand Down Expand Up @@ -745,6 +761,10 @@ export class Clippy extends BasePetType {
emoji(): string {
return 'πŸ“Ž';
}
hello(): string {
// TODO: #188 Add a custom message for clippy
return ` says hello πŸ‘‹!`;
}
}

export class RubberDuck extends BasePetType {
Expand Down Expand Up @@ -790,6 +810,10 @@ export class RubberDuck extends BasePetType {
emoji(): string {
return 'πŸ₯';
}
hello(): string {
// TODO: #190 Add a custom message for duck
return ` says hello πŸ‘‹!`;
}
}

export class Cockatiel extends BasePetType {
Expand Down Expand Up @@ -835,6 +859,10 @@ export class Cockatiel extends BasePetType {
emoji(): string {
return '🦜';
}
hello(): string {
// TODO: #191 Add a custom message for cockatiel
return ` says hello πŸ‘‹!`;
}
}

export class Crab extends BasePetType {
Expand Down Expand Up @@ -880,6 +908,10 @@ export class Crab extends BasePetType {
emoji(): string {
return 'πŸ¦€';
}
hello(): string {
// TODO: #192 Add a custom message for crab
return ` says hello πŸ‘‹!`;
}
}

export class Zappy extends BasePetType {
Expand Down Expand Up @@ -925,6 +957,10 @@ export class Zappy extends BasePetType {
emoji(): string {
return '⚑';
}
hello(): string {
// TODO: #193 Add a custom message for zappy
return ` says hello πŸ‘‹!`;
}
}

export class Rocky extends BasePetType {
Expand Down Expand Up @@ -952,6 +988,10 @@ export class Rocky extends BasePetType {
canChase(): boolean {
return false;
}
hello(): string {
// TODO: #194 Add a custom message for rock
return ` says hello πŸ‘‹!`;
}
}

export class InvalidPetException {
Expand Down

0 comments on commit 4d7ee5d

Please sign in to comment.