about summary refs log tree commit diff stats
path: root/data/maps/the_ancient/doors.txtpb
blob: e5503069a26f79e878d2f53e3fd01f0ba694fdaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
doors {
  name: "Front Door"
  type: STANDARD
  receivers: "Components/Doors/Front N Tree"
  panels { room: "Outside" name: "THIS" }
  location_room: "Outside"
}
doors {
  name: "End Door"
  type: EVENT
  keyholders { map: "four_rooms" room: "Keyholder Room" name: "A" key: "a" }
  keyholders { map: "the_hive" room: "Main Area" name: "B" key: "b" }
  keyholders { map: "daedalus" room: "C Keyholder" name: "C" key: "c" }
  keyholders { map: "daedalus" room: "D Keyholder" name: "D" key: "d" }
  keyholders { map: "control_center" room: "Main Area" name: "2" key: "e" }
  keyholders { map: "daedalus" room: "F Keyholder" name: "F" key: "f" }
  keyholders { map: "daedalus" room: "Number Paintings Area" name: "G" key: "g" }
  keyholders { map: "daedalus" room: "Outside House" name: "H" key: "h" }
  keyholders { map: "the_unkempt" room: "Main Area" name: "I" key: "i" }
  keyholders { map: "the_jubilant" room: "Side Area" name: "J" key: "j" }
  keyholders { map: "the_tenacious" room: "Main Area" name: "K" key: "k" }
  keyholders { map: "the_partial" room: "Obverse Side" name: "L" key: "l" }
  keyholders { map: "the_extravagant" room: "X Plus" name: "M" key: "m" }
  keyholders { map: "the_shop" room: "Main Area" name: "N" key: "n" }
  keyholders { map: "control_center" room: "Main Area" name: "4" key: "o" }
  keyholders { map: "the_gallery" room: "Main Area" name: "P" key: "p" }
  keyholders { map: "the_quiet" room: "Keyholder Room" name: "Q" key: "q" }
  keyholders { map: "control_center" room: "Main Area" name: "3" key: "r" }
  keyholders { map: "the_nuanced" room: "Main Room" name: "S" key: "s" }
  keyholders { map: "the_congruent" room: "T Keyholder" name: "T" key: "t" }
  keyholders { map: "the_parthenon" room: "U Keyholder" name: "U" key: "u" }
  keyholders { map: "the_unkempt" room: "V Keyholder" name: "V" key: "v" }
  keyholders { map: "the_unkempt" room: "W Keyholder" name: "W" key: "w" }
  keyholders { map: "the_great" room: "North Landscape" name: "X" key: "x" }
  keyholders { map: "the_talented" room: "Main Area" name: "Y" key: "y" }
  keyholders { map: "control_center" room: "Main Area" name: "1" key: "z" }
  location_room: "Inside"
}
doors {
  name: "Lavender Cubes"
  type: LOCATION_ONLY
  panels { room: "Inside" name: "COLOR" }
  location_room: "Inside"
  location_name: "COLOR"
}
an class="cm"> * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * */ // Only compile this code on iOS. These files should NOT be included on your Mac project. // But in case they are included, it won't be compiled. #import <Availability.h> #ifdef __IPHONE_OS_VERSION_MAX_ALLOWED /* * This file contains the delegates of the touches * There are 2 possible delegates: * - CCStandardTouchHandler: propagates all the events at once * - CCTargetedTouchHandler: propagates 1 event at the time */ #import "CCTouchHandler.h" #import "../../ccMacros.h" #pragma mark - #pragma mark TouchHandler @implementation CCTouchHandler @synthesize delegate, priority; @synthesize enabledSelectors=enabledSelectors_; + (id)handlerWithDelegate:(id) aDelegate priority:(int)aPriority { return [[[self alloc] initWithDelegate:aDelegate priority:aPriority] autorelease]; } - (id)initWithDelegate:(id) aDelegate priority:(int)aPriority { NSAssert(aDelegate != nil, @"Touch delegate may not be nil"); if ((self = [super init])) { self.delegate = aDelegate; priority = aPriority; enabledSelectors_ = 0; } return self; } - (void)dealloc { CCLOGINFO(@"cocos2d: deallocing %@", self); [delegate release]; [super dealloc]; } @end #pragma mark - #pragma mark StandardTouchHandler @implementation CCStandardTouchHandler -(id) initWithDelegate:(id)del priority:(int)pri { if( (self=[super initWithDelegate:del priority:pri]) ) { if( [del respondsToSelector:@selector(ccTouchesBegan:withEvent:)] ) enabledSelectors_ |= kCCTouchSelectorBeganBit; if( [del respondsToSelector:@selector(ccTouchesMoved:withEvent:)] ) enabledSelectors_ |= kCCTouchSelectorMovedBit; if( [del respondsToSelector:@selector(ccTouchesEnded:withEvent:)] ) enabledSelectors_ |= kCCTouchSelectorEndedBit; if( [del respondsToSelector:@selector(ccTouchesCancelled:withEvent:)] ) enabledSelectors_ |= kCCTouchSelectorCancelledBit; } return self; } @end #pragma mark - #pragma mark TargetedTouchHandler @interface CCTargetedTouchHandler (private) -(void) updateKnownTouches:(NSMutableSet *)touches withEvent:(UIEvent *)event selector:(SEL)selector unclaim:(BOOL)doUnclaim; @end @implementation CCTargetedTouchHandler @synthesize swallowsTouches, claimedTouches; + (id)handlerWithDelegate:(id)aDelegate priority:(int)priority swallowsTouches:(BOOL)swallow { return [[[self alloc] initWithDelegate:aDelegate priority:priority swallowsTouches:swallow] autorelease]; } - (id)initWithDelegate:(id)aDelegate priority:(int)aPriority swallowsTouches:(BOOL)swallow { if ((self = [super initWithDelegate:aDelegate priority:aPriority])) { claimedTouches = [[NSMutableSet alloc] initWithCapacity:2]; swallowsTouches = swallow; if( [aDelegate respondsToSelector:@selector(ccTouchBegan:withEvent:)] ) enabledSelectors_ |= kCCTouchSelectorBeganBit; if( [aDelegate respondsToSelector:@selector(ccTouchMoved:withEvent:)] ) enabledSelectors_ |= kCCTouchSelectorMovedBit; if( [aDelegate respondsToSelector:@selector(ccTouchEnded:withEvent:)] ) enabledSelectors_ |= kCCTouchSelectorEndedBit; if( [aDelegate respondsToSelector:@selector(ccTouchCancelled:withEvent:)] ) enabledSelectors_ |= kCCTouchSelectorCancelledBit; } return self; } - (void)dealloc { [claimedTouches release]; [super dealloc]; } @end #endif // __IPHONE_OS_VERSION_MAX_ALLOWED