diff --git a/Engine/src/live/PlayerEntity.ts b/Engine/src/live/AnimalEntity.ts similarity index 96% rename from Engine/src/live/PlayerEntity.ts rename to Engine/src/live/AnimalEntity.ts index 47a1c0f..9b1debf 100644 --- a/Engine/src/live/PlayerEntity.ts +++ b/Engine/src/live/AnimalEntity.ts @@ -4,9 +4,11 @@ import { Entity } from "./Entity" import { PuddleEntity } from './PuddleEntity' import { WorldContext } from './World' -export class PlayerEntity extends Entity { +export class AnimalEntity extends Entity { action?: Action puddleTimer: number = 0 + isPlayer: boolean = false + constructor(ctor: string) { super(ctor) } @@ -131,6 +133,6 @@ export class PlayerEntity extends Entity { } } -export function isPlayerEntity(o: any): o is PlayerEntity { +export function isAnimalEntity(o: any): o is AnimalEntity { return o.act }