summary refs log tree commit diff stats
path: root/src/com/fourisland
Commit message (Collapse)AuthorAgeFilesLines
* Fixed HeroEvent rendering condition bugStarla Insigna2009-01-281-10/+2
| | | | Replaced said condition with an instanceof check to see if toDraw.getGraphic() is an instance of BlankEventGraphic. The previous way did not, in fact, work because an EventGraphic never be equal to a String. This previous way only existed because HeroEvent's graphic used to be stored as a filename/offset combo instead of as an EventGraphic.
* Fixed off-screen bugStarla Insigna2009-01-286-11/+28
| | | | If an Event is adjacent to a Map boundary, then it could accidentally walk off the screen during the following circumstance: When a MoveEvent() action tells said Event to move off-screen while the Event is already moving, collision checking will be bypassed and the Event will proceed to walk off the screen, after which an Exception will be thrown when said Event attempts to move again. This bug has been fixed.
* Created a manager for SpecialEvent action threadsStarla Insigna2009-01-285-6/+95
| | | | EventHandler controls when they are executed and allows MapViewGameState to poll it to see if it is currently managing any action threads. If it is, MapViewGameState should be able to prevent certain actions from occuring (unless the action thread is ParallelProcess) such as keyboard input.
* Removed the moveDirection field from AbstractEventStarla Insigna2009-01-284-54/+45
| | | | As direction itself is always the same as moveDirection when moveDirection is needed, it will do fine without having to complicated access modifiers.
* Added parentMap data to EventStarla Insigna2009-01-277-182/+195
| | | | StepMoveEvent has an issue where an event could walk off the screen under its influence because it preformed no collision checking, due to the fact that the parent map had to be accessable to preform collision checking. Now, both event styles (unified with an AbstractEvent class that handles functions common to both styles) carries information about its parent map, provided by EventList which is in turn provided by the parent map itself.
* Renamed MovementType's startMoving()Starla Insigna2009-01-275-6/+5
| | | | startMoving() wasn't exactly a fit enough name for the method, so it was changed to nextMovement()
* Converted GameCharacter's graphic store methodStarla Insigna2009-01-272-18/+9
| | | | Previously, GameCharacter (HeroEvent's backend) stored it's graphic as a graphic/offset combination. However, the EventGraphic class is the correct way to store it.
* Fixed "walk-thru-me" bugStarla Insigna2009-01-279-43/+133
| | | | Previously, Map's checkForCollision did not properly check collision and would allow an event to initiate movement to a location another event was already moving to (but wasn't at yet).
* Replaced checked exceptions with RuntimeExceptionStarla Insigna2009-01-2443-194/+320
|
* Extended GameCharacters from ArrayListStarla Insigna2009-01-244-47/+37
|
* Fixed MoveEvent bugStarla Insigna2009-01-198-48/+147
|
* Imported sourcesStarla Insigna2009-01-1753-0/+3218