Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
the_dungeon_project
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
genie_logiciel_2015
the_dungeon_project
Commits
f0b30cdd
Commit
f0b30cdd
authored
Jan 06, 2016
by
Thomas Dupriez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generated a follower for each player. Hope it works
parent
8ec70a0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/core/gamestate/GameContent.java
src/core/gamestate/GameContent.java
+6
-0
No files found.
src/core/gamestate/GameContent.java
View file @
f0b30cdd
...
...
@@ -59,6 +59,12 @@ public class GameContent implements Serializable{
c
.
setFaction
(
1
);
gameState
.
addEntity
(
c
);
players
.
add
(
c
);
Character
follower
=
SpeciesArray
.
createCharacter
(
posX
,
posY
,
5000
,
"Ponyta"
,
"ponyta"
+(
i
+
1
));
follower
.
setFaction
(
1
);
gameState
.
addEntity
(
follower
);
Relayer
followerRelayer
=
Relayers
.
addNewRelayer
(
follower
);
AIControler
.
add
(
this
,
followerRelayer
,
EnumBehaviourType
.
Follower
);
}
System
.
out
.
println
(
"GameContent class: One gameContent created by"
+
Thread
.
currentThread
().
getId
());
Logging
.
getInstance
().
getLogger
().
info
(
"GameContent class: One gameContent created by"
+
Thread
.
currentThread
().
getId
());
...
...
Write
Preview
Markdown
is supported
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