Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
1. Fixed Scene constructors and documentation.
  • Loading branch information
nathan-fiscaletti committed Mar 8, 2018
1 parent 702865d commit 2f2f681
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions src/jtwod/engine/Scene.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public Scene(String name, ParentEngine engine)
this.drawableGroup = new DrawableGroup<>(this.getParentEngine(), this);
this.recurringTimers = new LinkedList<>();
this.showCursor = false;
this.currentCursorTexture = null;
initializeInternalDrawables(engine);
}

Expand Down Expand Up @@ -192,13 +193,15 @@ public Scene(
this.drawableGroup = new DrawableGroup<>(this.getParentEngine(), this);
this.recurringTimers = new LinkedList<>();
this.showCursor = false;
this.currentCursorTexture = null;
initializeInternalDrawables(engine);
}

/**
* Initialize the <code>{@link jtwod.engine.Scene Scene}</code> with a
* parent <code>{@link jtwod.engine.Engine Engine}</code> and an
* parent <code>{@link jtwod.engine.Engine Engine}</code>, an
* <code>{@link jtwod.engine.EntityController EntityController}</code>.
* as well as a cursor initial state.
*
* @param name
* The name of the <code>{@link jtwod.engine.Scene Scene}</code>.
Expand All @@ -213,10 +216,10 @@ public Scene(
* <code>{@link jtwod.engine.Scene Scene}</code>.
*/
public Scene(
String name,
ParentEngine engine,
EntityController<ParentEngine> controller,
boolean showCursor
String name,
ParentEngine engine,
EntityController<ParentEngine> controller,
boolean showCursor
) {
this.name = name;
this.parentEngine = engine;
Expand All @@ -230,8 +233,11 @@ public Scene(

/**
* Initialize the <code>{@link jtwod.engine.Scene Scene}</code> with a
* parent <code>{@link jtwod.engine.Engine Engine}</code> and an
* <code>{@link jtwod.engine.EntityController EntityController}</code>.
* parent <code>{@link jtwod.engine.Engine Engine}</code>, an
* <code>{@link jtwod.engine.EntityController EntityController}</code>
* as well as a cursor initial state and a
* <code>{@link jtwod.engine.graphics.Texture Texture}</code> to
* associate with the Cursor.
*
* @param name
* The name of the <code>{@link jtwod.engine.Scene Scene}</code>.
Expand All @@ -245,14 +251,15 @@ public Scene(
* If set to true, the Cursor will be displayed in this
* <code>{@link jtwod.engine.Scene Scene}</code>.
* @param cursorTexture
* The Texture for the Cursor.
* The <code>{@link jtwod.engine.graphics.Texture Texture}</code>
* for the Cursor.
*/
public Scene(
String name,
ParentEngine engine,
EntityController<ParentEngine> controller,
boolean showCursor,
Texture cursorTexture
String name,
ParentEngine engine,
EntityController<ParentEngine> controller,
boolean showCursor,
Texture cursorTexture
) {
this.name = name;
this.parentEngine = engine;
Expand Down

0 comments on commit 2f2f681

Please sign in to comment.