蛇身类
package com.game;
public class Snake_Element
{
private int point_x=0;//x坐标
private int point_Y=0;//y坐标
private int direction=Snake_Direction.RIGHT; //蛇身某一部位的当前方向
private int size=Snake_Direction.SNAKE_SIZE;//蛇身的大小
public Snake_Element()
{
}
public Snake_Element(int point_x,int point_y)
{
this.point_x = point_x;
this.point_Y = point_y;
}
public int getDirection()
{
return direction;
}
public void setDirection(int direction) {
this.direction = direction;
}
public int getPoint_x() {
return point_x;
}
public void setPoint_x(int point_x) {
this.point_x = point_x;
}
public int getPoint_Y() {
return point_Y;
}
public void setPoint_Y(int point_Y) {
this.point_Y = point_Y;
}
public int getSize() {
return size;
}
public void setSize(int size) {
this.size = size;
}
}
本文出自 “技术人生” 博客,请务必保留此出处http://zhaohaiyang.blog.51cto.com/2056753/432192
相关新闻>>
- 发表评论
-
- 最新评论 更多>>