Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pacman
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ramona Ullmann
Pacman
Commits
0b490a99
Commit
0b490a99
authored
3 years ago
by
Ramona Ullmann
Browse files
Options
Downloads
Patches
Plain Diff
Update MAMPFI.java
parent
79d2721b
Branches
NewMaster
revert-baf46e6c
Branches containing commit
No related tags found
3 merge requests
!15
Revert "Merge branch 'PositionSetzen2' into 'master'"
,
!11
Revert "Merge branch 'PositionSetzen2' into 'master'"
,
!10
into VerwundbarSetzen
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAMPFI.java
+34
-1
34 additions, 1 deletion
MAMPFI.java
with
34 additions
and
1 deletion
MAMPFI.java
+
34
−
1
View file @
0b490a99
...
...
@@ -23,7 +23,20 @@ public class MAMPFI
symbol
.
FuellFarbeSetzen
(
"gelb"
)
;
symbol
.
RandFarbeSetzen
(
"schwarz"
);
}
public
MAMPFI
(
char
Gew
�
nschteBlickrichtung
){
positionX
=
0
;
positionY
=
0
;
verwundbar
=
true
;
blickrichtung
=
Gew
�
nschteBlickrichtung
;
symbol
=
new
KREISFORM
(
)
;
if
(
blickrichtung
==
'N'
){
NachNordenBlicken
();
}
else
if
(
blickrichtung
==
'O'
){
NachOstenBlicken
();
}
symbol
.
FuellFarbeSetzen
(
"gelb"
)
;
symbol
.
RandFarbeSetzen
(
"schwarz"
);
}
public
void
VerwundbarSetzen
(
boolean
v
)
{
verwundbar
=
v
;
...
...
@@ -46,4 +59,24 @@ public class MAMPFI
{
verwundbar
=
false
;
}
public
void
NachNordenBlicken
(){
blickrichtung
=
'N'
;
symbol
.
StartWinkelSetzen
(
120
);
symbol
.
BogenWinkelSetzen
(
300
);
}
public
void
NachOstenBlicken
(){
blickrichtung
=
'O'
;
symbol
.
StartWinkelSetzen
(
30
);
symbol
.
BogenWinkelSetzen
(
300
);
}
public
void
NachSuedenBlicken
(){
blickrichtung
=
'S'
;
symbol
.
StartWinkelSetzen
(-
60
);
symbol
.
BogenWinkelSetzen
(
300
);
}
public
void
NachWestenBlicken
(){
blickrichtung
=
'W'
;
symbol
.
StartWinkelSetzen
(-
150
);
symbol
.
BogenWinkelSetzen
(
300
);
}
}
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