From 1e18467e49d042c45c9ab733886621ba0e8730dc Mon Sep 17 00:00:00 2001 From: Kai von der Decken <kai-benedikt.von-der-decken@stud.hs-hannover.de> Date: Mon, 9 Nov 2020 10:22:06 +0100 Subject: [PATCH] Test --- CoronaVirus.java | 2 +- CoronaVirus.~ava | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 CoronaVirus.~ava diff --git a/CoronaVirus.java b/CoronaVirus.java index dcfca36..c84ffad 100644 --- a/CoronaVirus.java +++ b/CoronaVirus.java @@ -15,7 +15,7 @@ public class CoronaVirus extends Enemy public void act() { disappear(); - turn(5); + turn(10); } } diff --git a/CoronaVirus.~ava b/CoronaVirus.~ava new file mode 100644 index 0000000..dcfca36 --- /dev/null +++ b/CoronaVirus.~ava @@ -0,0 +1,21 @@ +import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) + +/** + * Write a description of class CoronaVirus here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class CoronaVirus extends Enemy +{ + /** + * Act - do whatever the CoronaVirus wants to do. This method is called whenever + * the 'Act' or 'Run' button gets pressed in the environment. + */ + public void act() + { + disappear(); + turn(5); + } + +} -- GitLab