From fd58a0cde1bb5473e39e6cb82d28113da84b9ae0 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 10 Sep 2011 17:07:13 -0400 Subject: Reworked falling objects Previously, every type of falling object had to have its own class that defined the object type's sprite, weight, and reaction to the cart/floor. This was pretty messy considering how many object types may only be used in one game mode--for instance, the many power ups in Power mode, once it's created, will never be used outside of Power mode. So, to increase customizability and decrease class clutter, game modes now use a FallingObjectFactory to define recipes (basically a sprite filename, a weight and an identifier) that can easily be built throughout the game mode using the identifier. FallingObjectDelegate is now used for all reactions to the cart/floor, rather than defining a standard reaction in the FallingObject subclass and then putting extra stuff in FallingObjectDelegate. --- Classes/ValuableObject.h | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 Classes/ValuableObject.h (limited to 'Classes/ValuableObject.h') diff --git a/Classes/ValuableObject.h b/Classes/ValuableObject.h deleted file mode 100644 index 7b484d9..0000000 --- a/Classes/ValuableObject.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// ValuableObject.h -// Cart Collect -// -// Created by Starla Insigna on 8/9/11. -// Copyright 2011 Four Island. All rights reserved. -// - -#import "FallingObject.h" - -@interface ValuableObject : FallingObject - -- (int)pointValue; - -@end -- cgit 1.4.1