Permalink
Browse files

cleaning out repo

  • Loading branch information...
1 parent 9191c90 commit cb0d9ff3bc2bef8406f5565a023279c7aa95c279 @andrewkshim andrewkshim committed Apr 20, 2012
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1 @@
+[{},{}]
@@ -1,26 +0,0 @@
-package achievement;
-
-import player.Player;
-import player.PlayerExperience;
-import units.CharmanderUnit;
-
-public class AchievementExperience extends Achievement {
-
- private PlayerExperience experienceAttribute;
-
- public AchievementExperience(PlayerExperience exp) {
- this.experienceAttribute = exp;
- }
-
-
- @Override
- public void update(Player player) {
- if (this.experienceAttribute.levelUp()) {
- System.out.println("Gained Level!!");
- System.out.println("UNLOCKED CHARMANDER!");
- player.addNewUnitType(new CharmanderUnit());
- }
- }
-
-
-}
@@ -1,12 +0,0 @@
-package achievement;
-
-/**
- * Handles achievements and invokes appropriate changes in game/player states
- * @author aks
- *
- */
-
-// might not actually use this
-public class AchievementListener {
-
-}
@@ -1,19 +0,0 @@
-package achievement;
-
-import java.util.ArrayList;
-
-import player.Player;
-
-import units.Unit;
-
-public class AchievementUnitGroup extends Achievement {
-
- @Override
- public void update(Player player) {
- // TODO Auto-generated method stub
-
- }
-
-
-
-}
@@ -1,46 +0,0 @@
-package observers;
-
-
-import java.util.ArrayList;
-
-
-import player.Player;
-import player.PlayerUnitGroup;
-import player.PlayerStateStandby;
-
-import achievement.Achievement;
-
-import units.Unit;
-import units.attributes.AttributeTurn;
-
-public class UnitObserver extends PlayerObserver {
-
- public void update(Player observable) {
-
- isUnitCountZero(observable);
- doUnitsHaveMovesLeft(observable);
-
- }
-
- public void isUnitCountZero(Player observable) {
- if (((PlayerUnitGroup) observable.getAttribute("UnitGroup"))
- .getActiveUnitCount() == 0) {
-// Achievement.defeatPlayer(observable);
- }
- }
-
- public void doUnitsHaveMovesLeft(Player observable) {
- ArrayList<Unit> units = (ArrayList<Unit>) observable.getAttribute(
- "UnitGroup").getData();
- for (Unit u : units) {
- if (u.hasAttribute("Turn")) {
- if (!(((AttributeTurn) u.getAttribute("Turn"))
- .isAttributeUsed("Move"))) {
- return;
- }
- }
- }
- observable.setState(new PlayerStateStandby());
- }
-
-}

0 comments on commit cb0d9ff

Please sign in to comment.