OSDN Git Service

UIを調整
[kcd/KCD.git] / KCD / HMMapStartCommand.m
1 //
2 //  HMMapStartCommand.m
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2014/05/22.
6 //  Copyright (c) 2014年 Hori,Masaki. All rights reserved.
7 //
8
9 #import "HMMapStartCommand.h"
10
11 #import "HMCalculateDamageCommand.h"
12 #import "HMGuardShelterCommand.h"
13
14 @implementation HMMapStartCommand
15 + (void)load
16 {
17         static dispatch_once_t onceToken;
18         dispatch_once(&onceToken, ^{
19                 [HMJSONCommand registerClass:self];
20         });
21 }
22
23 + (BOOL)canExcuteAPI:(NSString *)api
24 {
25         if([api isEqualToString:@"/kcsapi/api_req_map/start"]) return YES;
26         if([api isEqualToString:@"/kcsapi/api_req_map/next"]) return YES;
27         
28         return NO;
29 }
30
31 - (id)init
32 {
33         self = [super initWithCommands:
34                         [HMCalculateDamageCommand new],
35                         [HMGuardShelterCommand new],
36                         nil];
37         return self;
38 }
39 @end