Skip to content
Snippets Groups Projects
Commit a24bf4cc authored by Håvard Daleng's avatar Håvard Daleng
Browse files

Reorganised file structure and added placeholder for ChaosGameObserver.

parent f39b7b84
No related branches found
No related tags found
No related merge requests found
Showing
with 38 additions and 26 deletions
......@@ -34,10 +34,11 @@ public class Main {
System.out.println(e.getMessage()); // TODO: Alter error game
}
/* Test whether factory successfully instantiates descriptions.
ChaosGameDescriptionFactory factory = new ChaosGameDescriptionFactory();
for (ChaosGameDescription desc : factory.getDescriptions()) {
System.out.println(desc);
}
}*/
boolean exit = false;
......
package edu.ntnu.stud.chaosgame.controller;
import edu.ntnu.stud.chaosgame.model.game.ChaosCanvas;
import edu.ntnu.stud.chaosgame.model.game.ChaosGameDescription;
/**
* Observer class for monitoring changes to the active
* ChaosGameDescription {@link ChaosGameDescription} or the canvas {@link ChaosCanvas}
*/
public class ChaosGameObserver {
// TODO: Create class
}
package edu.ntnu.stud.chaosgame.model;
package edu.ntnu.stud.chaosgame.model.data;
/**
* Class representing a complex number.
*/
public class Complex extends Vector2D{
public class Complex extends Vector2D {
/**
* Create a new complex number.
......
package edu.ntnu.stud.chaosgame.model;
package edu.ntnu.stud.chaosgame.model.data;
import edu.ntnu.stud.chaosgame.model.game.ChaosGameDescription;
......
package edu.ntnu.stud.chaosgame.model;
package edu.ntnu.stud.chaosgame.model.data;
/**
* Class representing a 2D vector.
......
package edu.ntnu.stud.chaosgame.model.game;
import edu.ntnu.stud.chaosgame.model.Matrix2x2;
import edu.ntnu.stud.chaosgame.model.Vector2D;
import edu.ntnu.stud.chaosgame.model.data.Matrix2x2;
import edu.ntnu.stud.chaosgame.model.data.Vector2D;
import edu.ntnu.stud.chaosgame.model.transformations.AffineTransform2D;
......
package edu.ntnu.stud.chaosgame.model.game;
import edu.ntnu.stud.chaosgame.model.Vector2D;
import edu.ntnu.stud.chaosgame.model.data.Vector2D;
import java.util.Random;
/**
......
package edu.ntnu.stud.chaosgame.model.game;
import edu.ntnu.stud.chaosgame.model.Vector2D;
import edu.ntnu.stud.chaosgame.model.data.Vector2D;
import edu.ntnu.stud.chaosgame.model.transformations.Transform2D;
import java.util.List;
import javax.xml.crypto.dsig.Transform;
/**
* Description of the chaos game.
......
package edu.ntnu.stud.chaosgame.model.game;
import edu.ntnu.stud.chaosgame.model.Complex;
import edu.ntnu.stud.chaosgame.model.Matrix2x2;
import edu.ntnu.stud.chaosgame.model.Vector2D;
import edu.ntnu.stud.chaosgame.model.data.Complex;
import edu.ntnu.stud.chaosgame.model.data.Matrix2x2;
import edu.ntnu.stud.chaosgame.model.data.Vector2D;
import edu.ntnu.stud.chaosgame.model.transformations.AffineTransform2D;
import edu.ntnu.stud.chaosgame.model.transformations.JuliaTransform;
import edu.ntnu.stud.chaosgame.model.transformations.Transform2D;
......
package edu.ntnu.stud.chaosgame.model.transformations;
import edu.ntnu.stud.chaosgame.model.Matrix2x2;
import edu.ntnu.stud.chaosgame.model.Vector2D;
import edu.ntnu.stud.chaosgame.model.data.Matrix2x2;
import edu.ntnu.stud.chaosgame.model.data.Vector2D;
import edu.ntnu.stud.chaosgame.model.game.ChaosGameFileHandler;
/**
......
package edu.ntnu.stud.chaosgame.model.transformations;
import edu.ntnu.stud.chaosgame.model.Complex;
import edu.ntnu.stud.chaosgame.model.Vector2D;
import edu.ntnu.stud.chaosgame.model.data.Complex;
import edu.ntnu.stud.chaosgame.model.data.Vector2D;
import edu.ntnu.stud.chaosgame.model.game.ChaosGameFileHandler;
public class JuliaTransform extends Transform2D {
......
package edu.ntnu.stud.chaosgame.model.transformations;
import edu.ntnu.stud.chaosgame.model.Vector2D;
import edu.ntnu.stud.chaosgame.model.data.Vector2D;
/**
* Abstract class representing transformations in a 2D-plane.
......
package edu.ntnu.stud.chaosgame.game;
import edu.ntnu.stud.chaosgame.model.Complex;
import edu.ntnu.stud.chaosgame.model.Matrix2x2;
import edu.ntnu.stud.chaosgame.model.Vector2D;
import edu.ntnu.stud.chaosgame.model.data.Complex;
import edu.ntnu.stud.chaosgame.model.data.Matrix2x2;
import edu.ntnu.stud.chaosgame.model.data.Vector2D;
import edu.ntnu.stud.chaosgame.model.game.ChaosGameDescription;
import edu.ntnu.stud.chaosgame.model.transformations.AffineTransform2D;
import edu.ntnu.stud.chaosgame.model.transformations.JuliaTransform;
......
package edu.ntnu.stud.chaosgame.transformations;
import edu.ntnu.stud.chaosgame.model.Matrix2x2;
import edu.ntnu.stud.chaosgame.model.Vector2D;
import edu.ntnu.stud.chaosgame.model.data.Matrix2x2;
import edu.ntnu.stud.chaosgame.model.data.Vector2D;
import edu.ntnu.stud.chaosgame.model.transformations.AffineTransform2D;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
......
package edu.ntnu.stud.chaosgame.transformations;
import edu.ntnu.stud.chaosgame.model.Complex;
import edu.ntnu.stud.chaosgame.model.Matrix2x2;
import edu.ntnu.stud.chaosgame.model.Vector2D;
import edu.ntnu.stud.chaosgame.model.data.Complex;
import edu.ntnu.stud.chaosgame.model.data.Matrix2x2;
import edu.ntnu.stud.chaosgame.model.data.Vector2D;
import edu.ntnu.stud.chaosgame.model.transformations.JuliaTransform;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
......
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