Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Doppeltgemoppelt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
btomi96
Doppeltgemoppelt
Commits
620a9aed
Commit
620a9aed
authored
May 11, 2016
by
Tamas Bunth
Browse files
Options
Downloads
Patches
Plain Diff
trust me im an engineer
parent
ad472445
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/app/Controller.java
+2
-4
2 additions, 4 deletions
core/app/Controller.java
core/view/GameWindow.java
+1
-1
1 addition, 1 deletion
core/view/GameWindow.java
with
3 additions
and
5 deletions
core/app/Controller.java
+
2
−
4
View file @
620a9aed
...
...
@@ -39,7 +39,6 @@ import view.ZPMView;
public
class
Controller
{
private
View
view
;
private
GameController
game
;
private
int
colonelLife
;
private
int
jaffaLife
;
...
...
@@ -107,15 +106,14 @@ public class Controller {
if
(!
initMap
(
mapPath
))
{
System
.
err
.
println
(
"Map with path "
+
mapPath
+
" has initialization problems"
);
// TODO it may be better to move on with level
// actualLvl--;
actualLvl
--;
continue
;
}
updateLifeSettings
();
uploadMapDatas
();
game
=
new
GameController
(
view
,
InitController
.
map
.
length
,
InitController
.
map
[
0
].
length
);
GameController
game
=
new
GameController
(
view
,
InitController
.
map
.
length
,
InitController
.
map
[
0
].
length
);
game
.
startGameProcess
();
//actualLvl++;
}
catch
(
FileNotFoundException
e
)
{
...
...
This diff is collapsed.
Click to expand it.
core/view/GameWindow.java
+
1
−
1
View file @
620a9aed
...
...
@@ -62,7 +62,6 @@ class GameWindow extends JFrame implements KeyListener {
}
// TODO size of table
// currently the table fills the frame
JPanel
mapPanel
=
new
JPanel
(
new
GridLayout
(
mapWidth
,
mapHeight
));
for
(
ElementPanel
[]
elementPanels
:
elemPanels
)
{
for
(
ElementPanel
elementPanel
:
elementPanels
)
{
...
...
@@ -107,6 +106,7 @@ class GameWindow extends JFrame implements KeyListener {
public
void
setElement
(
int
x
,
int
y
,
ArrayList
<
ViewElement
>
viewElem
)
{
// TODO error check
// Sort ViewElements in order to draw images
// in the appropriate order.
if
(
viewElem
!=
null
)
{
...
...
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