Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(gfxEngine, pathFinder)
{
Assert.instanceOf(gfxEngine, Engine);
Assert.instanceOf(pathFinder, PathFinder);
this._gfxEngine = gfxEngine;
this._pathFinder = pathFinder;
this._version = '1.0.0-DEV';
this._resetState();
}
constructor(position, ground, tileLayers, moveSpeedModifier = 0)
{
Assert.instanceOf(position, Position);
Assert.instanceOf(ground, Item);
Assert.instanceOf(tileLayers, TileLayers);
Assert.integer(moveSpeedModifier);
this._position = position;
this._ground = ground;
this._tileLayers = tileLayers;
this._moveSpeedModifier = moveSpeedModifier;
this._characters = new Map();
this._monster = null;
}
constructor(position, ground, tileLayers, moveSpeedModifier = 0)
{
Assert.instanceOf(position, Position);
Assert.instanceOf(ground, Item);
Assert.instanceOf(tileLayers, TileLayers);
Assert.integer(moveSpeedModifier);
this._position = position;
this._ground = ground;
this._tileLayers = tileLayers;
this._moveSpeedModifier = moveSpeedModifier;
this._characters = new Map();
this._monster = null;
}
constructor(character)
{
Assert.instanceOf(character, Character);
this._character = character;
this._incomeMessages = [];
}
constructor(kernel, accounts, characters, incomeMessages, broadcaster, logger)
{
Assert.instanceOf(kernel, Kernel);
Assert.instanceOf(accounts, Accounts);
Assert.instanceOf(characters, Characters);
Assert.instanceOf(incomeMessages, IncomeMessageQueue);
Assert.instanceOf(broadcaster, Broadcaster);
this._kernel = kernel;
this._accounts = accounts;
this._characters = characters;
this._incomeMessages = incomeMessages;
this._broadcaster = broadcaster;
this._logger = logger;
}