summary refs log tree commit diff stats
path: root/nbproject/genfiles.properties
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-02-07 22:03:22 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-02-07 22:03:22 -0500
commit3724f4ecbe61e6621d4a7e993cd80ab75ee41266 (patch)
tree7701709896cdb261c9c1a2e89cf240f57b18e6b1 /nbproject/genfiles.properties
parentb2b180730ad252b4a8d15d9bc59895b56c552c29 (diff)
downloadfourpuzzle-3724f4ecbe61e6621d4a7e993cd80ab75ee41266.tar.gz
fourpuzzle-3724f4ecbe61e6621d4a7e993cd80ab75ee41266.tar.bz2
fourpuzzle-3724f4ecbe61e6621d4a7e993cd80ab75ee41266.zip
Added TurnLeft and TurnRight AnimationTypes
Also implemented opposite(), left() and right() functions for Direction which return the opposite, counterclockwise and clockwise directions respectively. I don't exactly like the current Direction implementation as it's not very elegant. Hopefully there is a way to make this prettier.

Also added a setter to PossibleEvent that allows LayerEvent to notify it when it starts or stops moving. This is necessary because the TurnLeft and TurnRight AnimationTypes constantly attempt to rotate the Event and if the Direction of the Event is changed while it is moving, it will move to a different space and animation will look strange. Thus, setDirection() has been modified so it will disallow direction change if the Event is moving.

Also fixed a small encapsulation bug in AbstractEvent. PossibleEvent's notification of movement was made possible through the overriding of the setMoving() function, which is used by AbstractEvent to set if the Event is currently moving. However, while it used setMoving() to turn on moving, previously it did not use it to turn off moving, it simply modified the field. This has been fixed.
Diffstat (limited to 'nbproject/genfiles.properties')
0 files changed, 0 insertions, 0 deletions