Skip to content
This repository has been archived by the owner on Mar 3, 2019. It is now read-only.

Commit

Permalink
Script cratère
Browse files Browse the repository at this point in the history
  • Loading branch information
PFGimenez committed May 26, 2017
1 parent 62b8f22 commit d70547b
Showing 1 changed file with 18 additions and 29 deletions.
47 changes: 18 additions & 29 deletions pc/src/scripts/ScriptPetitCratere.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,25 +106,6 @@ protected void run(RealGameState state) throws InterruptedException, UnableToMov

state.robot.ouvreFilet();

if(remue)
{
try
{
state.robot.baisseFilet();
}
catch(ActionneurException e)
{
log.warning(e);
}

state.robot.avance(-60, Speed.STANDARD);

state.robot.avance(60, Speed.STANDARD);

state.robot.avance(60, Speed.STANDARD);
}


try
{
state.robot.baisseFilet();
Expand All @@ -150,19 +131,27 @@ protected void run(RealGameState state) throws InterruptedException, UnableToMov
catch(ActionneurException e1)
{
log.warning(e1);
try
{
state.robot.leveFilet();
}
catch(ActionneurException e2)
{
log.warning(e2);
}
state.robot.fermeFilet();
throw e1;
}
}

if(remue)
{
state.robot.avance(-60, Speed.STANDARD);

state.robot.avance(60, Speed.STANDARD);

state.robot.avance(60, Speed.STANDARD);

try
{
state.robot.baisseFilet();
}
catch(ActionneurException e1)
{
log.warning(e1);
}
}

state.robot.fermeFilet();
state.robot.ouvreFilet();
state.robot.fermeFiletForce();
Expand Down

0 comments on commit d70547b

Please sign in to comment.