Skip to content

Commit

Permalink
General comments for each class
Browse files Browse the repository at this point in the history
Author for each class now included
  • Loading branch information
349928465 committed Jun 13, 2024
1 parent 0293a66 commit 499706c
Show file tree
Hide file tree
Showing 24 changed files with 110 additions and 50 deletions.
6 changes: 6 additions & 0 deletions Bee.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import greenfoot.World;

/**
* Bee Class
*
* @author Adrian, Jason
* @version June 13 2024
*/
public abstract class Bee extends Mobs {
private final int hp;
private final int speed;
Expand Down
6 changes: 6 additions & 0 deletions BlueBee.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import greenfoot.World;

/**
* BlueBee Class
*
* @author Adrian, Jason
* @version June 13 2024
*/
public class BlueBee extends Bee {
private final int speed;
private final int range;
Expand Down
6 changes: 3 additions & 3 deletions Brick.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import greenfoot.GreenfootImage;

/**
* Write a description of class Block here.
* Block Class
*
* @author (your name)
* @version (a version number or a date)
* @author Adrian, Jimmy
* @version June 13 2024
*/
public class Brick extends Tile {
public Brick() {
Expand Down
6 changes: 3 additions & 3 deletions Button.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
* Write a description of class Button here.
* Button class for the game
*
* @author (your name)
* @version (a version number or a date)
* @author Jimmy
* @version June 13 2024
*/
public class Button extends Actor
{
Expand Down
12 changes: 7 additions & 5 deletions Coin.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import greenfoot.GreenfootImage;

/**
* Write a description of class Coin here.
* Coin class
*
* @author (your name)
* @version (a version number or a date)
* @author Jimmy, Daniel
* @version June 13 2024
*/
public class Coin extends Collection {
private final GreenfootImage image;

/**
* Constructor
*/
public Coin() {
image = new GreenfootImage("coin.png");
image.scale(45,45);
Expand All @@ -17,8 +20,7 @@ public Coin() {
}

/**
* Act - do whatever the Coin wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
* Act - if touching Player, remove coin and add it to the total coins
*/
public void act() {
if (isTouching(Player.class)) {
Expand Down
6 changes: 3 additions & 3 deletions Collection.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
* Write a description of class Collection here.
* Collection Class
*
* @author (your name)
* @version (a version number or a date)
* @author Daniel, Adrian, Jimmy
* @version June 13 2024
*/
public class Collection extends SuperSmoothMover
{
Expand Down
12 changes: 7 additions & 5 deletions Crown.java
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
import greenfoot.GreenfootImage;

/**
* Write a description of class Crown here.
* Crown class
*
* @author (your name)
* @version (a version number or a date)
* @author Daniel
* @version June 13 2024
*/
public class Crown extends Collection {
private final GreenfootImage image;

/**
* Constructor
*/
public Crown() {
image = new GreenfootImage("crown.png");
image.scale(64, 64);
setImage(image);
}

/**
* Act - do whatever the Crown wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
* Act - Removes from world if touching Player and adds it to totalCrowns
*/
public void act() {
if (isTouching(Player.class)){
Expand Down
6 changes: 3 additions & 3 deletions Drone.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
* Write a description of class Drone here.
* Drone Class
*
* @author (your name)
* @version (a version number or a date)
* @author Daniel
* @version June 13 2024
*/
public class Drone extends FriendlyCreatures
{
Expand Down
6 changes: 3 additions & 3 deletions EndScreen.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
* Write a description of class EndScreen here.
* End Screen for the game
*
* @author (your name)
* @version (a version number or a date)
* @author Jimmy
* @version June 13 2024
*/
public class EndScreen extends World
{
Expand Down
6 changes: 6 additions & 0 deletions FloorHole.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

import java.util.List;

/**
* FloorHole class
*
* @author Adrian
* @version June 13 2024
*/
public class FloorHole extends Actor {
public FloorHole() {
GreenfootImage image = new GreenfootImage(1, 1);
Expand Down
6 changes: 3 additions & 3 deletions FriendlyCreatures.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
* Write a description of class FriendlyCreatures here.
* FriendlyCreatures Class
*
* @author (your name)
* @version (a version number or a date)
* @author Daniel
* @version June 13 2024
*/
public class FriendlyCreatures extends SuperSmoothMover
{
Expand Down
6 changes: 3 additions & 3 deletions GameOverScreen.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import greenfoot.*;

/**
* Write a description of class GameOverScreen here.
* Screen for when Player dies
*
* @author (your name)
* @version (a version number or a date)
* @author Jimmy
* @version June 13 2024
*/
public class GameOverScreen extends World {
private final Font font = new Font("Arial", 64);
Expand Down
6 changes: 6 additions & 0 deletions GreenBee.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* GreenBee Class
*
* @author Adrian, Jason
* @version June 13 2024
*/
public class GreenBee extends Bee {
private int speed;

Expand Down
6 changes: 6 additions & 0 deletions JumpBooster.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
import greenfoot.GreenfootImage;
import greenfoot.World;

/**
* JumpBooster Class
*
* @author Adrian
* @version June 13 2024
*/
public class JumpBooster extends Actor {
GreenfootImage image;

Expand Down
6 changes: 3 additions & 3 deletions Level0.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import greenfoot.GreenfootImage;

/**
* Write a description of class Level0 here.
* World for Level0 of the game
*
* @author (your name)
* @version (a version number or a date)
* @author Adrian
* @version June 13 2024
*/
public class Level0 extends Level {
private final ImgScroll scroll;
Expand Down
6 changes: 3 additions & 3 deletions Level1.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import greenfoot.GreenfootImage;

/**
* Write a description of class Level1 here.
* World for Level1 of the game
*
* @author (your name)
* @version (a version number or a date)
* @author Jimmy
* @version June 13 2024
*/
public class Level1 extends Level {
private final ImgScroll scroll;
Expand Down
6 changes: 3 additions & 3 deletions LoadSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import java.util.StringTokenizer;

/**
* Write a description of class LoadSettings here.
* Load Screen for when people want to load their progress (coins,hp,level)
*
* @author (your name)
* @version (a version number or a date)
* @author Jimmy
* @version June 13 2024
*/
public class LoadSettings extends World
{
Expand Down
6 changes: 6 additions & 0 deletions Mites.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import greenfoot.GreenfootImage;
import greenfoot.World;

/**
* Mites Class
*
* @author Adrian, Jason(graphics)
* @version June 13 2024
*/
public class Mites extends Mobs {
private final int hp;
private final int dmg;
Expand Down
2 changes: 1 addition & 1 deletion Mobs.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* Mobs Class
*
* @author Adrian
* @author Adrian, Jason
* @version June 13 2024
*/

Expand Down
13 changes: 9 additions & 4 deletions Orb.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import greenfoot.Actor;

/**
* Write a description of class Orb here.
* Orb class
*
* @author (your name)
* @version (a version number or a date)
* @author Jimmy
* @version June 13 2024
*/
public class Orb extends Actor {
/**
Expand All @@ -14,7 +14,12 @@ public class Orb extends Actor {
public void act() {
// Add your action code here.
}


/**
* Returns true if Orb is touching Player Class
* Returns false if Orb is not touching Player Class
*
*/
public boolean isBeingTouched() {
return isTouching(Player.class);
}
Expand Down
7 changes: 7 additions & 0 deletions RedBee.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* RedBee Class
*
* @author Adrian, Jason
* @version June 13 2024
*/

public class RedBee extends Bee {
private final int range;
private final int direction = 1;
Expand Down
6 changes: 6 additions & 0 deletions Spider.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import greenfoot.GreenfootImage;
import greenfoot.World;

/**
* Spider Class
*
* @author Adrian, Jason(graphics)
* @version June 13 2024
*/
public class Spider extends Mobs {
private final int hp;
private final double speed;
Expand Down
6 changes: 3 additions & 3 deletions Spike.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@


/**
* Write a description of class Spike here.
* Spike Class
*
* @author (your name)
* @version (a version number or a date)
* @author Jimmy
* @version June 13 2024
*/
public class Spike extends Tile
{
Expand Down
6 changes: 4 additions & 2 deletions TitleScreen.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
* Title Screen
* Title Screen for the game
* Players can create a new game
* Or load their previous game if they have a save file
*
* @author Jimmy
* @version (a version number or a date)
* @version June 13 2024
*/
public class TitleScreen extends World
{
Expand Down

0 comments on commit 499706c

Please sign in to comment.