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
daf901c5
Commit
daf901c5
authored
3 years ago
by
Peter Backes
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
2a0487aa
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Mampfi peter1.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAMPFI.java
+49
-0
49 additions, 0 deletions
MAMPFI.java
with
49 additions
and
0 deletions
MAMPFI.java
0 → 100644
+
49
−
0
View file @
daf901c5
public
class
MAMPFI
{
// Instanzvariablen - ersetzen Sie das folgende Beispiel mit Ihren Variablen
int
positionX
;
int
positionY
;
boolean
verwundbar
;
char
blickrichtung
;
KREISFORM
symbol
;
/**
* simpler Konstruktor f�r Objekte der Klasse MAMPFI
*/
public
MAMPFI
()
{
positionX
=
0
;
positionY
=
0
;
verwundbar
=
true
;
blickrichtung
=
'N'
;
symbol
=
new
KREISFORM
(
)
;
symbol
.
StartWinkelSetzen
(
120
)
;
symbol
.
BogenWinkelSetzen
(
300
)
;
symbol
.
FuellFarbeSetzen
(
"gelb"
)
;
symbol
.
RandFarbeSetzen
(
"schwarz"
);
}
public
void
VerwundbarSetzen
(
boolean
v
)
{
verwundbar
=
v
;
if
(
v
=
true
)
{
symbol
.
FuellFarbeSetzen
(
"rot"
);
}
else
{
symbol
.
FuellFarbeSetzen
(
"gelb"
);
}
}
public
void
VerwundbarMachen
()
{
verwundbar
=
true
;
}
public
void
UnverwundbarMachen
()
{
verwundbar
=
false
;
}
}
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