Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genie_logiciel_2015
the_dungeon_project
Commits
a4ef7176
Commit
a4ef7176
authored
Jan 05, 2016
by
Lucas Delcros
Browse files
Merge branch 'master' of
https://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project
parents
395f32d8
95d11a24
Changes
4
Hide whitespace changes
Inline
Side-by-side
hooks/action_post_update
View file @
a4ef7176
#/bin/sh
git config --bool hooks.allownonascii "false"
exit 0
lib/hamcrest-core-1.3.jar
View file @
a4ef7176
No preview for this file type
src/artificial_intelligence/AIEntities/StraightEntity.java
View file @
a4ef7176
...
...
@@ -44,18 +44,15 @@ public class StraightEntity extends AbstractEntity {
this
.
random_move
();
}
}
else
{
Direction
d
=
this
.
relayer
.
getCharacter
().
getDirection
();
double
r
=
random
();
if
(
r
<
0.75
){
this
.
relayer
.
move
(
d
);
}
else
{
this
.
random_move
();}
// A*
/*List<Entity> entityList=gameState.getAllEntities();
int dX = entityList.get(this.Choose_victim()).getX();
int dY = entityList.get(this.Choose_victim()).getY();
int sX = relayer.getCharacter().getX();
int sY = relayer.getCharacter().getY();
Direction dir = AI.alpha_star(sX, sY, dX, dY,map.getWidth(),map.getHeight());
//Logging.getInstance().getLogger().info(dir.toString());
this.relayer.move(dir);*/
}
// attack
this
.
relayer
.
tryToCastAbility
(
0
);
...
...
src/core/gamestate/GameContent.java
View file @
a4ef7176
...
...
@@ -41,7 +41,7 @@ public class GameContent implements Serializable{
for
(
Entity
e:
map
.
getEntities
()){
gameState
.
addEntity
(
e
);
Relayer
dmr
=
Relayers
.
addNewRelayer
(
e
);
AIControler
.
add
(
this
,
dmr
,
EnumBehaviourType
.
Basic
);
AIControler
.
add
(
this
,
dmr
,
EnumBehaviourType
.
Straight
);
}
}
int
posX
=(
map
.
getPositionPlayerStart
().
getI
())*
Point
.
TileScale
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment