Пример #1
0
        public static BarSideState GetNextBarState(BarSideState curstate)
        {
            switch (curstate)
            {
            case BarSideState.Green:
                return(BarSideState.Red);

            case BarSideState.Red:
                return(BarSideState.Green);

            default:
                return(BarSideState.Green);
            }
        }
Пример #2
0
        public static Color GetColorFromState(BarSideState curState)
        {
            switch (curState)
            {
            case BarSideState.Green:
                return(Color.Green);

            case BarSideState.Red:
                return(Color.Red);

            default:
                return(Color.Green);
            }
        }
Пример #3
0
 public Bar()
 {
     this.State = BarSideState.Green;
 }
Пример #4
0
 public Beat(Game game, Vector2 position) : base(game)
 {
     _state        = BarSideState.Green;
     this.Location = position;
 }