public Water(IPosition elementPosition, IList <IGameObjectElement> elements) { this.IsHit = false; this.ElementPosition = elementPosition; this.Elements = elements; this.type = GameObjectElementType.Water; }
public IGameObjectElement CreateGameObjectElement(IPosition pos, GameObjectElementType type) { if (pos == null) { throw new NullReferenceException(); } return(new GameObjectElement(pos, type)); }
public GameObjectElement(IPosition position, GameObjectElementType type) { this.Position = position; this.Type = type; }