Skip to content
This repository was archived by the owner on Oct 31, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions Code & Resources/design-docs/Matt_Changelog 0805.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
changes

--- GAMEPLAY BALANCES ---

Tusken HP increased to 200
- class Tusken;
super (..., 200, ...)

Tusken Attack doubled by giving new weapon, Gaffi Stick
Created TuskenGaffiStick class, extends entity
has weapon capability
does 20 damage, double what the Tuskens would do barehanded
All tuskens now hold a gaffiStick object
given symbol 'G'

Added Tuskens to Map
Three additional tuskens have been hardcoded in at different locations
Added with names in SWWorld, Tim, Tom, Tina and Tony
otherwise identical
# are the attacks they do to each other working? they shouldnt do anything #

Lightsaber damage reduced
Damage reduced from 1000000 to 100

Aunt Beru and Uncle Owen
SWLegends with no possible force
## is this a flaw in our design? ##

--- ASSIGNMENT 1 DESIGNS ---

Lightsaber user needs force
modified from Lightsaber entity getForceLvL original plan, as listsaber entity has no vision of who is holding it
changed attack action to check for force levels and legend status

uses getSymbol() method from SWEntityInterface to detect lightsaber being held
## still needs to be able to see getForce() method - unsure of implementation ##
## can forcelvlv be given to actor? there are legends with no possibility of force,
and given the limited methods of force levels changing, there isn't a high chance of mistake ##

SWLegend needs force value
added int variable, setForce(), and getForce() methods
## currently not used ##



=== NOTES ===

class Player breaks game when it's legendAct() replaces act().
getUserDirection takes actor, not legend. how to allow it to accept both?
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
package starwars;

import edu.monash.fit2099.simulator.matter.Actor;
import edu.monash.fit2099.simulator.matter.Affordance;
import edu.monash.fit2099.simulator.userInterface.MessageRenderer;
import starwars.actions.Fill;

/**
* Class that represents <code>Affordances</code> in the <code>starwars</code> world.
* <p>
* This class implements such methods in <code>SWActionInterface</code> as can reasonably
* be written at this stage, to minimize the amount of work that needs to be done to add new <code>Affordances</code>.
*
* @author ram
* @see edu.monash.fit2099.simulator.matter.Affordance
* @see starwars.SWActionInterface
*/
/*
* Change log
* 2017-02-04 Added conditions in tick method to avoid dead actors from performing actions (asel)
* 2017-02-20: Removed the redundant compareTo method. The compareTo method is already implemented in the
* ActionInterface. (asel)
*/
public abstract class SWAffordance extends Affordance implements SWActionInterface {

/**
* Constructor for the <code>SWAffordance</code>.
* This would initialize the <code>MessageRenderer</code> and the target for this <code>SWAffordance</code>.
*
* @param theTarget a sub class of <code>SWEntityInterface</code> on which the action needs to be performed on
* @param m the <code>messageRenderer</code> to display messages for this <code>SWAffordance</code>.
*/
public SWAffordance(SWEntityInterface theTarget, MessageRenderer m) {
super(theTarget, m);
}

/**
* Returns if or not this <code>SWAffordance</code> is a move command.
* By default, <code>SWAffordances</code> are not move commands hence this
* method will always return false.
* <p>
* This method needs to be overridden in any <code>SWAffordance</code> is a move command
* (i.e. must be overridden to return true if the action can potentially change the location
* of a <code>SWEntity</code> or <code>SWActor</code>).
*
* @return false
*/
@Override
public boolean isMoveCommand() {
return false;
}


@Override
public int getDuration() {
return 1;
}


/**
* Accessor for the target of this <code>SWAffordance</code>. The target is a subclass of
* <code>SWEntityInterface</code> on which the action is performed on.
* <p>
* This method checks that the target conforms to the <code>SWEntityInterface</code> and
* downcasts it to a SWEntityInterface and returns it if so; otherwise returns null.
*
* @return the current target downcasted to <code>SWEntityInterface</code>
* or null if the current target isn't a <code>SWEntityInterface</code>
*/
protected SWEntityInterface getTarget() {
if (target instanceof SWEntityInterface)
//return the downcasted target
return (SWEntityInterface) target;

return null;//if the target is not a SWEntityInterface
}

/**
* Execute this <code>SWAffordance</code> by calling the <code>act()</code> method with an <code>Actor a</code>
* to perform the <code>SWAffordance</code>.
* <p>
* This method acts as a wrapper for the <code>act()</code> method that downcasts its parameter
* to minimize dangerous downcasting in subclasses.
* <p>
* This method only calls the <code>act()</code> method if and only,
* <ul>
* <li>The sub class of <code>Actor a</code> is a <code>SWActor</code>, and</li>
* <li>The <code>SWActor</code> is not dead</li>
* </ul>
* else this method does nothing.
*
* @param a a sub class of <code>Actor</code>
* @see #act(SWActor)
* @see SWActor#isDead()
*/
@Override
public void execute(Actor<?> actor) {
if (this instanceof Fill) {
System.out.println("Fill execute called");
}
if (actor instanceof SWActor && !((SWActor)actor).isDead())
act((SWActor) actor);

}

}
154 changes: 154 additions & 0 deletions TeamA-Assignments-master/FIT2099_Assignment/.metadata/.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
!SESSION 2017-05-06 21:11:32.974 -----------------------------------------------
eclipse.buildId=4.6.2.M20161124-1400
java.version=1.8.0_121
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_AU
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-05-06 21:11:58.631
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Matt Needham'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

!ENTRY org.eclipse.oomph.setup.ui 1 0 2017-05-06 21:12:14.267
!MESSAGE Setup tasks were performed during startup updating 5 preferences. See 'C:\Users\Matt Needham\eclipse\java-neon\eclipse\configuration\org.eclipse.oomph.setup\setup.log' for details

!ENTRY org.eclipse.epp.mpc.ui 1 0 2017-05-06 22:20:50.230
!MESSAGE Performing Marketplace install request from http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=1403812

!ENTRY org.eclipse.equinox.p2.repository 2 0 2017-05-06 22:20:57.558
!MESSAGE Server returned lastModified <= 0 for https://raw.github.com/guari/eclipse-ui-theme/master/com.github.eclipseuitheme.themes.updatesite/content.jar

!ENTRY org.eclipse.equinox.p2.repository 2 0 2017-05-06 22:21:10.386
!MESSAGE Server returned lastModified <= 0 for https://raw.github.com/guari/eclipse-ui-theme/master/com.github.eclipseuitheme.themes.updatesite/content.jar

!ENTRY org.eclipse.equinox.p2.repository 2 0 2017-05-06 22:21:16.472
!MESSAGE Server returned lastModified <= 0 for https://raw.github.com/guari/eclipse-ui-theme/master/com.github.eclipseuitheme.themes.updatesite/artifacts.jar
!SESSION 2017-05-06 22:21:49.956 -----------------------------------------------
eclipse.buildId=4.6.2.M20161124-1400
java.version=1.8.0_121
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_AU
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-05-06 22:22:06.287
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Matt Needham'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:35.027
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:35.029
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:35.033
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:35.034
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:35.044
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:35.045
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:35.151
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:35.152
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:35.157
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:35.158
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:35.175
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:35.176
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:38.922
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:38.924
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:38.927
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:38.928
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:38.933
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:38.934
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:38.991
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:38.992
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:38.996
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:38.997
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.003
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.004
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.776
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.777
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.780
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.781
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.785
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.786
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.873
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.874
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.877
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.878
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.883
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2017-05-06 22:26:39.885
!MESSAGE Failed to get bundle for: bundleclass://net.jeeeyul.eclipse.themes/net.jeeeyul.eclipse.themes.rendering.JeeeyulsTabRenderer

!ENTRY org.eclipse.equinox.p2.repository 2 0 2017-05-06 22:58:40.959
!MESSAGE Server returned lastModified <= 0 for https://raw.github.com/guari/eclipse-ui-theme/master/com.github.eclipseuitheme.themes.updatesite/content.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading