Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cpp-project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Maul
cpp-project
Commits
819aece6
Commit
819aece6
authored
5 months ago
by
Lorenz Martin Diel
Browse files
Options
Downloads
Patches
Plain Diff
adjusted xml to UnitId
parent
ca31cb74
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/config.cpp
+7
-7
7 additions, 7 deletions
src/config.cpp
src/main.cpp
+1
-1
1 addition, 1 deletion
src/main.cpp
src/unit.hpp
+8
-4
8 additions, 4 deletions
src/unit.hpp
xml/config.xml
+144
-372
144 additions, 372 deletions
xml/config.xml
with
160 additions
and
384 deletions
src/config.cpp
+
7
−
7
View file @
819aece6
...
...
@@ -83,19 +83,19 @@ namespace advanced_wars
{
"mechanized_infantry"
,
UnitId
::
MECHANIZED_INFANTERY
},
{
"recon"
,
UnitId
::
RECON
},
{
"apc"
,
UnitId
::
APC
},
{
"anti_air"
,
UnitId
::
ANTI_AIR
},
{
"tank"
,
UnitId
::
TANK
},
{
"
md
_tank"
,
UnitId
::
MD
_TANK
},
{
"anti_air
_tank
"
,
UnitId
::
ANTI_AIR
_TANK
},
{
"
medium_
tank"
,
UnitId
::
MEDIUM_
TANK
},
{
"
heavy
_tank"
,
UnitId
::
HEAVY
_TANK
},
{
"neotank"
,
UnitId
::
NEO_TANK
},
{
"artillery"
,
UnitId
::
ARTILLERY
},
{
"rocket"
,
UnitId
::
ROCKET_ARTILLERY
},
{
"
missile"
,
UnitId
::
MISSILE
},
{
"rocket
_artillery
"
,
UnitId
::
ROCKET_ARTILLERY
},
{
"
anti_air_missile_launcher"
,
UnitId
::
ANTI_AIR_MISSILE_LAUNCHER
},
{
"lander"
,
UnitId
::
LANDER
},
{
"cruiser"
,
UnitId
::
CRUISER
},
{
"submarine"
,
UnitId
::
SUBMARINE
},
{
"battleship"
,
UnitId
::
BATTLESHIP
},
{
"t
_
copter"
,
UnitId
::
TRANSPORT_HELICOPTER
},
{
"b
_
copter"
,
UnitId
::
BATTLE_HELICOPTER
},
{
"t
ransport_heli
copter"
,
UnitId
::
TRANSPORT_HELICOPTER
},
{
"b
attle_heli
copter"
,
UnitId
::
BATTLE_HELICOPTER
},
{
"fighter"
,
UnitId
::
FIGHTER
},
{
"bomber"
,
UnitId
::
BOMBER
}};
...
...
This diff is collapsed.
Click to expand it.
src/main.cpp
+
1
−
1
View file @
819aece6
This diff is collapsed.
Click to expand it.
src/unit.hpp
+
8
−
4
View file @
819aece6
...
...
@@ -20,21 +20,25 @@ enum class UnitId {
INFANTERY
=
0
,
MECHANIZED_INFANTERY
=
1
,
RECON
=
2
,
TANK
=
3
,
MD
_TANK
=
4
,
MEDIUM_
TANK
=
3
,
HEAVY
_TANK
=
4
,
NEO_TANK
=
5
,
//Diese Einheti kann im Spiel infantery bewegen
APC
=
6
,
ANTI_AIR
=
7
,
ANTI_AIR
_TANK
=
7
,
ARTILLERY
=
8
,
ROCKET_ARTILLERY
=
9
,
MISSILE
=
10
,
ANTI_AIR_MISSILE_LAUNCHER
=
10
,
FIGHTER
=
11
,
BOMBER
=
12
,
BATTLE_HELICOPTER
=
13
,
//Diese Einheti kann im Spiel infantery bewegen
TRANSPORT_HELICOPTER
=
14
,
BATTLESHIP
=
15
,
CRUISER
=
16
,
//Diese Einheit kann im Spiel alle Bodeneinheiten bewegen
LANDER
=
17
,
//Diese Einheit kann tauchen, und ist somit für einige Einheiten nicht sichtbar und kann zum Teil auch im Tauchen nicht angegriffen werden
SUBMARINE
=
18
,
UNKNOWN
=
19
};
...
...
This diff is collapsed.
Click to expand it.
xml/config.xml
+
144
−
372
View file @
819aece6
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment