private Themes themeSelector(Cube.Side selectedSide, CubeWrapper wrapper) { if (wrapper.mCubeName == CubeName.THEMES1) { switch (selectedSide) { case (Cube.Side.TOP): return Themes.BOAST; case (Cube.Side.BOTTOM): return Themes.ROAST; case (Cube.Side.LEFT): return Themes.LOVE; case (Cube.Side.RIGHT): return Themes.SOCIETY; default: return Themes.BOAST; } } else if (wrapper.mCubeName == CubeName.THEMES2) { switch (selectedSide) { case (Cube.Side.TOP): return Themes.ANIMALS; case (Cube.Side.BOTTOM): return Themes.GEOGRAPHY; case (Cube.Side.LEFT): return Themes.POLITICS; case (Cube.Side.RIGHT): return Themes.CHILDHOOD; default: return Themes.ANIMALS; } } else return Themes.ANIMALS; }
private string beatSelector(Cube.Side selectedSide, CubeWrapper wrapper) { if (wrapper.mCubeName == CubeName.BEAT1) { switch (selectedSide) { case (Cube.Side.TOP): return "basicbeatz"; case (Cube.Side.BOTTOM): return "reggae"; case (Cube.Side.LEFT): return "basicbeatz2"; case (Cube.Side.RIGHT): return "basicbeatz3"; default: return "basicBeat"; } } else if (wrapper.mCubeName == CubeName.BEAT2) { switch (selectedSide) { case (Cube.Side.TOP): return "indian"; case (Cube.Side.BOTTOM): return "Riff2"; case (Cube.Side.LEFT): return "blues"; case (Cube.Side.RIGHT): return "rock1"; default: return "basicBeat"; } } else return ""; }
private PlayerNames nameSelector(Cube.Side selectedSide, CubeWrapper wrapper) { if (wrapper.mCubeName == CubeName.NAMES1) { switch (selectedSide) { case (Cube.Side.TOP): return PlayerNames.JO; case (Cube.Side.BOTTOM): return PlayerNames.BO; case (Cube.Side.LEFT): return PlayerNames.BRO; case (Cube.Side.RIGHT): return PlayerNames.FLO; default: return PlayerNames.JO; } } else if (wrapper.mCubeName == CubeName.NAMES2) { switch (selectedSide) { case (Cube.Side.TOP): return PlayerNames.R2D2; case (Cube.Side.BOTTOM): return PlayerNames.RADTAD; case (Cube.Side.LEFT): return PlayerNames.STU; case (Cube.Side.RIGHT): return PlayerNames.CHUMP; default: return PlayerNames.JO; } } else return PlayerNames.JO; }
// called during intitialization, before the game has started to run public override void Setup() { Log.Debug("Setup()"); currentCubes = this.CubeSet.toArray(); currentVerseIndex = 0; mMusic = Sounds.CreateSound("intro"); mMusic.Play(1, -1); CubeWrapper wrapper1 = new CubeWrapper(this, currentCubes[0]); wrapper1.mImage = "freeStyle"; wrapper1.textOrImage = DisplayType.IMAGE; mWrappers.Add(wrapper1); CubeWrapper wrapper2 = new CubeWrapper(this, currentCubes[1]); wrapper2.mImage = "modeSelect"; wrapper2.textOrImage = DisplayType.IMAGE; wrapper2.mType = CubeType.SELECTABLE; mWrappers.Add(wrapper2); CubeWrapper wrapper3 = new CubeWrapper(this, currentCubes[2]); wrapper3.mImage = "selector"; wrapper3.textOrImage = DisplayType.IMAGE; wrapper3.mType = CubeType.SELECTOR; mWrappers.Add(wrapper3); foreach (CubeWrapper wrapper in mWrappers) { wrapper.DrawSlide(); } CubeSet.NeighborAddEvent += OnNeighborAdd; CubeSet.NeighborRemoveEvent += OnNeighborRemove; }