Skip to content
Snippets Groups Projects
Commit bc7ab6cc authored by Peter Backes's avatar Peter Backes
Browse files

Replace MAMPFI.java

parent 661d30b9
No related branches found
No related tags found
1 merge request!7VerwundbarSetzen
......@@ -23,14 +23,27 @@ public class MAMPFI
symbol.FuellFarbeSetzen("gelb") ;
symbol.RandFarbeSetzen("schwarz");
}
public void PositionSetzen() {
if(positionX>9 && positionX<0) {
if(positionY>9 && positionY<0) {
positionX=0;
positionY=0;
System.out.println("Fehlermeldung");
}
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;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment