00001
00002
00003
00004
00005
00006
00007
00008
00009 #import <Cocoa/Cocoa.h>
00010
00011 @class Player;
00012 @class Planet;
00013
00014 #import "Player.h"
00015 #import "Planet.h"
00016
00017 #define TEAM_NOBODY 0
00018 #define TEAM_IND 0
00019 #define TEAM_FIRST 1
00020 #define TEAM_FED 1
00021 #define TEAM_ROM 2
00022 #define TEAM_KLI 3
00023 #define TEAM_ORI 4
00024 #define TEAM_MAX 5
00025
00026 @interface Team : NSObject {
00027 NSMutableArray *players;
00028 NSMutableArray *planets;
00029 int teamId;
00030 NSString *abbrev;
00031 }
00032
00033 -(int) bitMask;
00034 - (id) initWithTeamId:(int)team;
00035 -(NSString *)mapCharsForPlayerWithId:(int)playerId;
00036 -(void) addPlayer:(Player *)player;
00037 -(void) removePlayer:(Player*)player;
00038 -(void) addPlanet:(Planet *)planet;
00039 -(void) removePlanet:(Planet*)planet;
00040 -(NSString *)abbreviation;
00041 -(int) teamId;
00042 -(int) count;
00043 - (NSColor *) colorForTeam;
00044
00045 @end