Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NetWorld
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LAIRD Timothy
NetWorld
Commits
ebd3ad27
Commit
ebd3ad27
authored
Apr 30, 2021
by
Timothy LAIRD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post demonstration
parent
201597d5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
CMakeLists.txt
+1
-1
controlpanel.c
src/controlpanel.c
+1
-0
main-viewer.c
src/main-viewer.c
+0
-1
player.c
src/player.c
+1
-1
No files found.
CMakeLists.txt
View file @
ebd3ad27
...
...
@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.10)
# Activate C99 standard:
SET
(
CMAKE_C_COMPILER
"gcc"
)
SET
(
CMAKE_C_FLAGS
"-std=c99"
)
set
(
CMAKE_CXX_FLAGS_DEBUG_INIT
"-Wall -Wextra"
)
set
(
CMAKE_CXX_FLAGS_DEBUG_INIT
"-Wall -Wextra
-g
"
)
set
(
CMAKE_CXX_FLAGS_RELEASE_INIT
"-Wall"
)
# project configuration :
...
...
src/controlpanel.c
View file @
ebd3ad27
...
...
@@ -94,6 +94,7 @@ void Panel_drawRules(Panel * self, Main_Menu * rules){
UnloadFont
(
font
);
EndDrawing
();
}
void
Panel_drawWin
(
Panel
*
self
,
Player
*
player
,
Mission
*
mission
){
BeginDrawing
();
Font
font
=
GetFontDefault
();
...
...
src/main-viewer.c
View file @
ebd3ad27
...
...
@@ -251,7 +251,6 @@ int game_update(NetWorld * world, Player * players, Mission * missions, Font* fo
Graphic_diceRolling
(
currentPlayer
,
&
(
players
[
nodePlayerID
]),
originNode
,
currentNode
,
nbOfAttackers
,
nbOfDefenders
,
listOfDices
,
font
);
currentPlayer
->
hasSelectedNode
=
false
;
free
(
listOfDices
);
}
else
{
}
}
}
...
...
src/player.c
View file @
ebd3ad27
...
...
@@ -88,7 +88,7 @@ void Player_start_turn(Player * self){
for
(
int
nodeIndex
=
0
;
nodeIndex
<
self
->
nodeCount
;
nodeIndex
++
){
totalSoldierCount
+=
self
->
nodes
[
nodeIndex
]
->
soldiers
;
}
self
->
soldiers
=
fmax
(
1
,
totalSoldierCount
/
3
);
self
->
soldiers
=
fmax
(
3
,
totalSoldierCount
/
3
);
self
->
turnPhase
=
recruitment
;
}
...
...
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