summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/gamestate/mapview/Map.java
Commit message (Collapse)AuthorAgeFilesLines
* Engine: Atomicized MapsStarla Insigna2009-02-151-0/+16
| | | | Previously, MapViewGameState preformed all of its actions directly on the internal map. However, this would result in the map being exactly the same when reloaded, which was not wanted. So, copy() functions have been added to several places so a copy of the internal map is provided for MapViewGameState.
* Engine: Rewrote Map abstractionStarla Insigna2009-02-121-20/+44
| | | | Instead of requiring users to extend Map, all that is required now is the creation of a Map object, which should then be configured and added to the Database via Database.addMap()
* Engine: Added global fontStarla Insigna2009-02-111-2/+2
| | | | | | | | Converted RM2K's RMG2000.fon to a TrueType font using some long and difficult processes (involving first converting to a .bdf, then to a .ttf). With this standard font included in the package, there will be no worry of strange fonts, as TrueType is a standard. Also, probably because of the size of the new font, the white-tail bug has disappeared. This seems rickety, but because this is the only font that should be used, it should be ok. And if the problem ever arises again, the ticket can be reopened. Fixes #6 and #1.
* Engine: Added some control to MusicStarla Insigna2009-02-101-1/+23
| | | | MapViewGameState now plays music depending on the variables of its Map, which can tell it to either stop the music, keep the previous music playing or start playing a specified music.
* Added support for other System filesStarla Insigna2009-02-081-0/+0
| | | | | | Because the coordinates and transparent color previously used were tuned for the default System file, the coordinates were changed to be more forgiving and the color is picked from the last pixel of the first row from the graphic. Also, for some reason, every file in source control has been marked as modified, even though most haven't been. Don't know why this happened.
* Added viewpoint scrollingStarla Insigna2009-01-301-0/+59
| | | | | | Now, maps can be larger than (20,15) and the map will scroll as the hero walks across the middle. However, Southward and Eastward middle-traversing appears to warp reality just a little and there are a few kinks that need to be straightened out. Map layer caching has also been added because the lower and upper layers of a map never change, so they are cached after the first rendering.
* Added parentMap data to EventStarla Insigna2009-01-271-2/+12
| | | | 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.
* Fixed "walk-thru-me" bugStarla Insigna2009-01-271-36/+31
| | | | 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-241-2/+2
|
* Extended GameCharacters from ArrayListStarla Insigna2009-01-241-16/+15
|
* Fixed MoveEvent bugStarla Insigna2009-01-191-7/+6
|
* Imported sourcesStarla Insigna2009-01-171-0/+185