Skip to content

Commit cc30d68

Browse files
author
Evan Hu
committed
v3.1.2
1 parent 81e5449 commit cc30d68

File tree

104 files changed

+245
-309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+245
-309
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@
1919

2020
## 引用
2121

22+
```
23+
<repositories>
24+
<repository>
25+
<id>ServerCore</id>
26+
<url>https://raw.github.com/GEngine-JP/GEngine/packages</url>
27+
<snapshots>
28+
<enabled>true</enabled>
29+
<updatePolicy>always</updatePolicy>
30+
</snapshots>
31+
</repository>
32+
</repositories>
33+
```
34+
35+
如果项目的pom.xml文件不加这段内容会找不到对应的jar包
36+
2237
```
2338
<dependency>
2439
<groupId>info.xiaomo</groupId>

src/main/java/info/xiaomo/gengine/ai/btree/BehaviorTree.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* @author implicit-invocation
1313
* @author davebaol
14-
* @fix JiangZhiYong
14+
*
1515
* 2017年11月22日 下午2:43:23
1616
*/
1717
public class BehaviorTree<E> extends Task<E> {

src/main/java/info/xiaomo/gengine/ai/btree/BranchTask.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
/*******************************************************************************
2-
* Copyright 2014 See AUTHORS file.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
******************************************************************************/
16-
171
package info.xiaomo.gengine.ai.btree;
182

193
import java.util.ArrayList;

src/main/java/info/xiaomo/gengine/ai/btree/LeafTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* game state
2828
* @author implicit-invocation
2929
* @author davebaol
30-
* @fix JiangZhiYong
30+
*
3131
*/
3232
@TaskConstraint(minChildren = 0, maxChildren = 0)
3333
public abstract class LeafTask<E> extends Task<E> {

src/main/java/info/xiaomo/gengine/ai/btree/LoopDecorator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @param <E> type of the blackboard object that tasks use to read or modify
2525
* game state
2626
* @author davebaol
27-
* @fix JiangZhiYong
27+
*
2828
*/
2929
public abstract class LoopDecorator<E> extends Decorator<E> {
3030

src/main/java/info/xiaomo/gengine/ai/btree/SingleRunningChildBranch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* game state
2929
* @author implicit-invocation
3030
* @author davebaol
31-
* @fix JiangZhiYong
31+
*
3232
*/
3333
public abstract class SingleRunningChildBranch<E> extends BranchTask<E> {
3434

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
/*******************************************************************************
2-
* Copyright 2014 See AUTHORS file.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
******************************************************************************/
16-
171
package info.xiaomo.gengine.ai.btree.annotation;
182

193
import java.lang.annotation.ElementType;
@@ -30,21 +14,17 @@
3014
@Target(ElementType.FIELD)
3115
public @interface TaskAttribute {
3216

33-
/**
34-
* Specifies the attribute's name; if empty the name of the field is used
35-
* instead.
36-
*
37-
* @return the attribute's name or an empty string if the name of the field must
38-
* be used.
39-
*/
40-
public String name() default "";
41-
42-
/**
43-
* Specifies whether the attribute is required or not.
44-
*
45-
* @return {@code true} if the attribute is required; {@code false} if it is
46-
* optional.
47-
*/
48-
public boolean required() default false;
17+
/**
18+
* Specifies the attribute's name; if empty the name of the field is used instead.
19+
*
20+
* @return the attribute's name or an empty string if the name of the field must be used.
21+
*/
22+
String name() default "";
4923

24+
/**
25+
* Specifies whether the attribute is required or not.
26+
*
27+
* @return {@code true} if the attribute is required; {@code false} if it is optional.
28+
*/
29+
boolean required() default false;
5030
}
Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,9 @@
1-
/*******************************************************************************
2-
* Copyright 2014 See AUTHORS file.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
******************************************************************************/
16-
171
package info.xiaomo.gengine.ai.btree.annotation;
182

193
import java.lang.annotation.*;
204

215
/**
22-
* This annotation specifies how many children the task can have. It is applied
23-
* to the task class.
6+
* This annotation specifies how many children the task can have. It is applied to the task class.
247
*
258
* @author davebaol
269
*/
@@ -30,18 +13,17 @@
3013
@Documented
3114
public @interface TaskConstraint {
3215

33-
/**
34-
* Returns the minimum number of allowed children, defaults to 0.
35-
*
36-
* @return the minimum number of allowed children.
37-
*/
38-
public int minChildren() default 0;
16+
/**
17+
* Returns the minimum number of allowed children, defaults to 0.
18+
*
19+
* @return the minimum number of allowed children.
20+
*/
21+
int minChildren() default 0;
3922

40-
/**
41-
* Returns the maximum number of allowed children, defaults to
42-
* {@code Integer.MAX_VALUE}.
43-
*
44-
* @return the maximum number of allowed children.
45-
*/
46-
public int maxChildren() default Integer.MAX_VALUE;
23+
/**
24+
* Returns the maximum number of allowed children, defaults to {@code Integer.MAX_VALUE}.
25+
*
26+
* @return the maximum number of allowed children.
27+
*/
28+
int maxChildren() default Integer.MAX_VALUE;
4729
}

src/main/java/info/xiaomo/gengine/ai/btree/decorator/Random.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @param <E> type of the blackboard object that tasks use to read or modify
3535
* game state
3636
* @author davebaol
37-
* @fix JiangZhiYong
37+
*
3838
*/
3939
@TaskConstraint(minChildren = 0, maxChildren = 1)
4040
public class Random<E> extends Decorator<E> {

src/main/java/info/xiaomo/gengine/ai/fsm/StackStateMachine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @param <E> the type of the entity owning this state machine
3232
* @param <S> the type of the states of this state machine
3333
* @author Daniel Holderbaum
34-
* @fix JiangZhiYong
34+
*
3535
*/
3636
public class StackStateMachine<E, S extends State<E>> extends DefaultStateMachine<E, S> {
3737

0 commit comments

Comments
 (0)