Repository navigation
Expand file tree
/
Copy pathFishInfo.java
More file actions
100 lines (86 loc) · 2.1 KB
/
Copy pathFishInfo.java
File metadata and controls
100 lines (86 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package com.mypro.model;
/**
* 某一种鱼的细节配置信息
* @author Leslie Leung
*
*/
public class FishInfo {
private int actSpeed = 200; //动作速度
private int maxRotate = 90; //最大旋转角度
private int fishRunSpeed = 60; //移动速度
private int fishShoalMax = 0; //最大的鱼群数
private int fishInLayer = 1; //所在图层
private int catchProbability; //捕捉概率
private int worth; //价值
public FishInfo(){}
public FishInfo(int actSpeed,int maxRotate,int fishRunSpeed,int fishShoalMax,int fishInLayer){
this.actSpeed = actSpeed;
this.maxRotate = maxRotate;
this.fishRunSpeed = fishRunSpeed;
this.fishShoalMax = fishShoalMax;
this.fishInLayer = fishInLayer;
}
public void setActSpeed(int actSpeed) {
this.actSpeed = actSpeed;
}
public void setMaxRotate(int maxRotate) {
this.maxRotate = maxRotate;
}
public void setFishRunSpeed(int fishRunSpeed) {
this.fishRunSpeed = fishRunSpeed;
}
public void setFishShoalMax(int fishShoalMax) {
this.fishShoalMax = fishShoalMax;
}
public void setFishInLayer(int fishInLayer) {
this.fishInLayer = fishInLayer;
}
/**
* 获取鱼的最大可旋转角度
* @return
*/
public int getMaxRotate() {
// TODO Auto-generated method stub
return maxRotate;
}
/**
* 获取鱼移动速度
* @return
*/
public int getFishRunSpeed() {
// TODO Auto-generated method stub
return fishRunSpeed;
}
/**
* 获取鱼群最大个数
* @return
*/
public int getFishShoalMax() {
// TODO Auto-generated method stub
return fishShoalMax;
}
/**
* 获取当前鱼所在图层号
* @return
*/
public int getFishInLayer() {
// TODO Auto-generated method stub
return fishInLayer;
}
public int getPicActSpeed() {
// TODO Auto-generated method stub
return this.actSpeed;
}
public int getCatchProbability() {
return catchProbability;
}
public void setCatchProbability(int catchProbability) {
this.catchProbability = catchProbability;
}
public int getWorth() {
return worth;
}
public void setWorth(int worth) {
this.worth = worth;
}
}