// Path: app/src/main/java/org/bobstuff/bobball/Direction.java
// public enum Direction implements Parcelable{
// 	LEFT,
// 	RIGHT,
//     UP,
//     DOWN;
// 
// 
//     public static Direction getRandom(Random randomGenerator) {
//         return Direction.values()[randomGenerator.nextInt(Direction.values().length)];
//     }
// 
//     //implement parcelable
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeInt(ordinal());
//     }
// 
// 
//     public static final Parcelable.Creator<Direction> CREATOR = new Parcelable.Creator<Direction>() {
// 
//         public Direction createFromParcel(Parcel in) {
//             return Direction.values()[in.readInt()];
//         }
// 
//         public Direction[] newArray(int size) {
//             return new Direction[size];
//         }
// 
//     };
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
// }


import android.os.Parcel;
import android.os.Parcelable;
import org.bobstuff.bobball.Direction;
import android.graphics.RectF;
/*
  Copyright (c) 2012 Richard Martin. All rights reserved.
  Licensed under the terms of the BSD License, see LICENSE.txt
*/

package org.bobstuff.bobball.GameLogic;



public class BarSection implements Parcelable {

    private float speed;
    private RectF frame;
    private Direction direction;

    public BarSection(final float x1,
                      final float y1,
                      final float x2,
                      final float y2,
// Path: app/src/main/java/org/bobstuff/bobball/Direction.java
// public enum Direction implements Parcelable{
// 	LEFT,
// 	RIGHT,
//     UP,
//     DOWN;
// 
// 
//     public static Direction getRandom(Random randomGenerator) {
//         return Direction.values()[randomGenerator.nextInt(Direction.values().length)];
//     }
// 
//     //implement parcelable
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeInt(ordinal());
//     }
// 
// 
//     public static final Parcelable.Creator<Direction> CREATOR = new Parcelable.Creator<Direction>() {
// 
//         public Direction createFromParcel(Parcel in) {
//             return Direction.values()[in.readInt()];
//         }
// 
//         public Direction[] newArray(int size) {
//             return new Direction[size];
//         }
// 
//     };
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
// }


// Path: app/src/main/java/org/bobstuff/bobball/GameLogic/BarSection.java
import android.os.Parcel;
import android.os.Parcelable;
import org.bobstuff.bobball.Direction;
import android.graphics.RectF;

/*
  Copyright (c) 2012 Richard Martin. All rights reserved.
  Licensed under the terms of the BSD License, see LICENSE.txt
*/

package org.bobstuff.bobball.GameLogic;



public class BarSection implements Parcelable {

    private float speed;
    private RectF frame;
    private Direction direction;

    public BarSection(final float x1,
                      final float y1,
                      final float x2,
                      final float y2,
                      final Direction direction,