crush-feelings
Version:
Simulate crush interactions in code!
24 lines (18 loc) • 429 B
text/typescript
import { Mood } from './types';
export class Person {
private name: string;
private currentMood: Mood;
constructor(name: string) {
this.name = name;
this.currentMood = 'happy';
}
getName(): string {
return this.name;
}
setMood(mood: Mood): void {
this.currentMood = mood;
}
getMood(): Mood {
return this.currentMood;
}
}