Android Open Source - NotATop Select Control From Project Back to project page NotATop .
License The source code is released under:
GNU General Public License
If you think the Android project NotATop listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package com.gg.module;
/ / f r o m w w w . j a v a 2 s . c o m
import com.gg.view.R;
public class SelectControl {
private static int index = 0;
private static int numberOfTop = 5;
private static int [] coneTextureIdArray = new int []{
R.drawable.cone0,
R.drawable.cone1,
R.drawable.cone2,
R.drawable.cone3,
R.drawable.cone4}; // ????????Id????
private static int [] cylinderTextureIdArray = new int []{
R.drawable.cylinder0,
R.drawable.cylinder1,
R.drawable.cylinder2,
R.drawable.cylinder3,
R.drawable.cylinder4}; // ?????????Id????
private static int [] circleTextureIdArray = new int []{
R.drawable.circle0,
R.drawable.circle1,
R.drawable.circle2,
R.drawable.circle3,
R.drawable.circle4}; // ???????Id????
private SelectControl(){
}
public static int getIndex(){
return index;
}
public static void setIndex(int indexOfTop){
index = indexOfTop;
}
public static int getNumberOfTop(){
return numberOfTop;
}
public static int getConeTextureId(){
return coneTextureIdArray[index];
}
public static int getCylinderTextureId(){
return cylinderTextureIdArray[index];
}
public static int getCircleTextureId(){
return circleTextureIdArray[index];
}
public static void next(){
if (index<numberOfTop-1){
index++;
}
}
public static void prev(){
if (index>0){
index--;
}
}
}
Java Source Code List com.gg.game.ClassicGame.java com.gg.game.ClassicGame.java com.gg.game.GameFrame.java com.gg.game.GameFrame.java com.gg.game.TimeGame.java com.gg.game.TimeGame.java com.gg.module.DrawBackground.java com.gg.module.DrawBackground.java com.gg.module.DrawScore.java com.gg.module.DrawScore.java com.gg.module.DrawTrack.java com.gg.module.DrawTrack.java com.gg.module.SelectControl.java com.gg.module.SelectControl.java com.gg.module.SoundControl.java com.gg.module.SoundControl.java com.gg.module.VoiceControl.java com.gg.module.VoiceControl.java com.gg.top.BasicTop.java com.gg.top.BasicTop.java com.gg.top.DrawCircle.java com.gg.top.DrawCircle.java com.gg.top.DrawCone.java com.gg.top.DrawCone.java com.gg.top.DrawCylinder.java com.gg.top.DrawCylinder.java com.gg.top.DrawTop.java com.gg.top.DrawTop.java com.gg.util.Circle.java com.gg.util.Circle.java com.gg.util.Constant.java com.gg.util.Constant.java com.gg.util.DateUtil.java com.gg.util.DateUtil.java com.gg.util.Direction.java com.gg.util.Direction.java com.gg.util.Line.java com.gg.util.Line.java com.gg.util.Point.java com.gg.util.Point.java com.gg.util.TextureRect.java com.gg.util.TextureRect.java com.gg.util.TrackPoint.java com.gg.util.TrackPoint.java com.gg.util.Track.java com.gg.util.Track.java com.gg.util.Utils.java com.gg.util.Utils.java com.gg.view.ClassicGameSurfaceView.java com.gg.view.ClassicGameSurfaceView.java com.gg.view.EndSurfaceView.java com.gg.view.EndSurfaceView.java com.gg.view.FirstTimeSurfaceView.java com.gg.view.FirstTimeSurfaceView.java com.gg.view.GameModeSurfaceView.java com.gg.view.GameModeSurfaceView.java com.gg.view.HelpSurfaceView.java com.gg.view.HelpSurfaceView.java com.gg.view.MainActivity.java com.gg.view.MainActivity.java com.gg.view.MainMenuSurfaceView.java com.gg.view.MainMenuSurfaceView.java com.gg.view.ScoreSurfaceView.java com.gg.view.ScoreSurfaceView.java com.gg.view.SelectSurfaceView.java com.gg.view.SelectSurfaceView.java com.gg.view.SurfaceViewFactory.java com.gg.view.SurfaceViewFactory.java com.gg.view.TimeGameSurfaceView.java com.gg.view.TimeGameSurfaceView.java com.gg.view.WelcomeSurfaceView.java com.gg.view.WelcomeSurfaceView.java