public static char ToChar(this Wall.Type type) { switch (type) { case Wall.Type.OPEN: return('O'); case Wall.Type.CLOSED: return('C'); case Wall.Type.MOUSE_HOLE: return('M'); case Wall.Type.RABBIT_HOLE: return('R'); case Wall.Type.MAGIC_DOOR: return('D'); default: return('X'); } }
static SoundFX GetWallSound(Wall.Type wallType) { return WALL_SOUNDS[wallType]; }
protected Wall(GameObject.Name name, Sprite.Name spriteName, Wall.Type type) : base(name, spriteName) { this.type = type; }