/Volumes/Plantain/MyDocuments/Projects/MacTrek/MacTrek/App/MTKeyMap.h

00001 //
00002 //  MTKeyMap.h
00003 //  MacTrek
00004 //
00005 //  Created by Aqua on 21/04/2006.
00006 //  Copyright 2006 __MyCompanyName__. All rights reserved.
00007 //
00008 
00009 #import <Cocoa/Cocoa.h>
00010 #import "MTKeyMapEntry.h"
00011 
00012 // the action invoked by the keypress
00013 #define ACTION_UNKNOWN           0
00014 #define ACTION_CLOAK             1
00015 #define ACTION_DET_ENEMY         2
00016 #define ACTION_DET_OWN           3
00017 #define ACTION_FIRE_PLASMA       4
00018 #define ACTION_FIRE_TORPEDO      5
00019 #define ACTION_FIRE_PHASER       6
00020 #define ACTION_SHIELDS           7
00021 #define ACTION_TRACTOR           8
00022 #define ACTION_PRESSOR           9
00023 #define ACTION_WARP_0           10
00024 #define ACTION_WARP_1           11
00025 #define ACTION_WARP_2           12
00026 #define ACTION_WARP_3           13
00027 #define ACTION_WARP_4           14
00028 #define ACTION_WARP_5           15
00029 #define ACTION_WARP_6           16
00030 #define ACTION_WARP_7           17
00031 #define ACTION_WARP_8           18
00032 #define ACTION_WARP_9           19
00033 #define ACTION_WARP_10          20
00034 #define ACTION_WARP_11          21
00035 #define ACTION_WARP_12          22
00036 #define ACTION_WARP_MAX         23
00037 #define ACTION_WARP_HALF_MAX    24
00038 #define ACTION_WARP_INCREASE    25
00039 #define ACTION_WARP_DECREASE    26
00040 #define ACTION_SET_COURSE       27
00041 #define ACTION_LOCK             28
00042 #define ACTION_PRACTICE_BOT     29
00043 #define ACTION_TRANSWARP        30
00044 #define ACTION_BOMB             31
00045 #define ACTION_ORBIT            32
00046 #define ACTION_BEAM_DOWN        33
00047 #define ACTION_BEAM_UP          34
00048 #define ACTION_DISTRESS_CALL    35
00049 #define ACTION_ARMIES_CARRIED_REPORT 36
00050 #define ACTION_MESSAGE          37
00051 #define ACTION_DOCK_PERMISSION  38
00052 #define ACTION_INFO             39
00053 #define ACTION_REFIT            40
00054 #define ACTION_REPAIR           41
00055 #define ACTION_QUIT             42
00056 #define ACTION_HELP             43
00057 #define ACTION_DEBUG            44
00058 
00059 @interface MTKeyMap : NSObject {
00060     NSMutableDictionary *keyMap;
00061     bool changedSinceLastWrite;
00062     NSString *pathToKeyMap;
00063 }
00064 
00065 - (id) initWithDefaultFile;
00066 - (id) initWithFile:(NSString *) file;
00067 - (void) writeToFile:(NSString *)file;
00068 - (void) readDefaultKeyMap;
00069 - (int) actionForKey:(char) key withModifierFlags:(unsigned int) flags;
00070 - (NSString *) descriptionForAction:(int) action;
00071 - (char) keyForAction:(int) action;
00072 - (unsigned int) flagsForAction:(int) action;
00073 - (void) setKey: (char) key forAction:(int) action;
00074 - (void) setFlags: (unsigned int) flags ForAction:(int) action;
00075 - (int) count;
00076 - (NSArray *)allKeys;
00077 - (void)writeToDefaultFileIfChanged;
00078 
00079 @end

Generated on Fri Jul 28 19:15:14 2006 for MacTrek by  doxygen 1.4.7