package cn.card.bean.inf;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.MotionEvent;
public interface BeanInf
{
boolean onTouchEvent(MotionEvent e);
void draw(Canvas canvas, Paint paint,Bitmap src);
}
package cn.card.constant.inf;
public interface CardsConstantRectKeyInf
{
public static final int K_RED_A = 1;
public static final int K_RED_2 = 2;
public static final int K_RED_3 = 3;
public static final int K_RED_4 = 4;
public static final int K_RED_5 = 5;
public static final int K_RED_6 = 6;
public static final int K_RED_7 = 7;
public static final int K_RED_8 = 8;
public static final int K_RED_9 = 9;
public static final int K_RED_10 = 10;
public static final int K_RED_J = 11;
public static final int K_RED_Q = 12;
public static final int K_RED_K = 13;
public static final int K_BLACK_A = 14;
public static final int K_BLACK_2 = 15;
public static final int K_BLACK_3 = 16;
public static final int K_BLACK_4 = 17;
public static final int K_BLACK_5 = 18;
public static final int K_BLACK_6 = 19;
public static final int K_BLACK_7 = 20;
public static final int K_BLACK_8 = 21;
public static final int K_BLACK_9 = 22;
public static final int K_BLACK_10 = 23;
public static final int K_BLACK_J = 24;
public static final int K_BLACK_Q = 25;
public static final int K_BLACK_K = 26;
public static final int K_14 = 27;
public static final int K_15 = 28;
/**
* 红心
*/
public static final int K_COLOR_RED_HEARTS = 29;
/**
* 方块
*/
public static final int K_COLOR_RED_BOX = 30;
/**
* 梅花
*/
public static final int K_COLOR_BLACK_PLUM_FLOWER = 31;
/**
* 黑桃
*/
public static final int K_COLOR_BLACK_SPADES = 32;
/**
* 中心
*/
public static final int K_CENTRE = 33;
/**
* 背面
*/
int K_BACK_CARD = 34;
/**
* 牌底面
*/
int K_BACKGROUND = 35;
/**
* 牌底面选择
*/
int K_BACKGROUND_SELECT = 36;
}
package cn.card.constant.inf;
import android.graphics.Rect;
public interface CardsConstantRectMethodInf extends CardsConstantRectKeyInf
{
/**
* (一句话功能简述)CardsConstantRectKeyInf<br>
* (功能详细描述)CardsConstantRectKeyInf<br>
* @author wWX169033
* @see 相关函数,对于重要的函数建议注释
* @since xxxxxx, 2013-7-29
* @param keyCard CardsConstantRectKeyInf中的常量
* @return
*/
Rect getRect(Integer keyCard);
}
package cn.card.constant.inf;
public interface CardsConstantInf extends CardsConstantRectMethodInf
{
}
package cn.card.factory.inf;
import java.util.List;
import android.content.Context;
import android.graphics.Bitmap;
import cn.card.bean.Card;
public interface CardsFactoryInf
{
/**
* (一句话功能简述)生产一副牌<br>
* (功能详细描述)<br>
* @author wWX169033
* @see 相关函数,对于重要的函数建议注释
* @since xxxxxx, 2013-7-29
* @return 一副牌
*/
List<Card> getCards();
Bitmap getSrcBitmap(Context context);
}
package cn.card.constant.inf;
public interface CardsConstantRectInf extends CardsConstantRectMethodInf
{
}