package team.black.fruitswirl;

import org.flixel.FlxSprite;

public class Fruit extends FlxSprite {
	
	public static final int STATE_NONE		= 0x00000000;
	public static final int STATE_NORMAL 	= 0x00000001;
	public static final int STATE_FIRE 		= 0x00000010;
	public static final int STATE_ELEC 		= 0x00000100;
	public static final int STATE_LOCKING 	= 0x00001000;
	public static final int STATE_LOCKED 	= 0x00010000;
	public static final int STATE_DESTROY	= 0x00100000;
	public static final int STATE_FALLING	= 0x01000000;
	public static final int STATE_FLIPPING	= 0x10000000;
	
	public static final int FLIP_NONE	= 0x0000;
	public static final int FLIP_LEFT	= 0x0001;
	public static final int FLIP_RIGHT	= 0x0010;
	public static final int FLIP_UP		= 0x0100;
	public static final int FLIP_DOWN	= 0x1000;
	
	
	private int curState;
	private int flipDirection;
	
	public Fruit(float _ix, float _iy){
		super(_ix, _iy);
		curState = STATE_NONE;
		flipDirection = FLIP_NONE;
	}
	
	public Fruit(float _ix, float _iy, int _initState){
		super(_ix, _iy);
		curState = _initState;
		flipDirection = FLIP_NONE;
	}
	
	
	@Override
	public void update(){
		super.update();
	}
	
}

@@ -818,16 +818,20 @@
  int cur
+rent
 State;%0A%09
@@ -917,27 +917,32 @@
 _iy);%0A%09%09
-cur
+setCurrent
 State
- = 
+(
 STATE_NO
@@ -943,21 +943,25 @@
 ATE_NONE
+)
 ;%0A%09%09
-f
+setF
 lipDirec
@@ -956,35 +956,33 @@
 setFlipDirection
- = 
+(
 FLIP_NONE;%0A%09%7D%0A%09%0A
@@ -966,32 +966,33 @@
 ection(FLIP_NONE
+)
 ;%0A%09%7D%0A%09%0A%09public F
@@ -1060,19 +1060,24 @@
 ;%0A%09%09
-cur
+setCurrent
 State
- = 
+(
 _ini
@@ -1086,13 +1086,17 @@
 tate
+)
 ;%0A%09%09
-f
+setF
 lipD
@@ -1107,11 +1107,9 @@
 tion
- = 
+(
 FLIP
@@ -1113,16 +1113,17 @@
 LIP_NONE
+)
 ;%0A%09%7D%0A%09%0A%09
@@ -1177,13 +1177,307 @@
 te();%0A%09%7D
+%0A%0A%09public int getCurrentState() %7B%0A%09%09return currentState;%0A%09%7D%0A%0A%09public void setCurrentState(int curState) %7B%0A%09%09this.currentState = curState;%0A%09%7D%0A%0A%09public int getFlipDirection() %7B%0A%09%09return flipDirection;%0A%09%7D%0A%0A%09public void setFlipDirection(int flipDirection) %7B%0A%09%09this.flipDirection = flipDirection;%0A%09%7D
 %0A%09%0A%7D%0A

Change curState to currentState in Fruit Class