/Volumes/Plantain/MyDocuments/Projects/MacTrek/MacTrek/Data/Status.m

00001 //
00002 //  Status.m
00003 //  MacTrek
00004 //
00005 //  Created by Aqua on 23/04/2006.
00006 //  Copyright 2006 __MyCompanyName__. All rights reserved.
00007 //
00008 
00009 #import "Status.h"
00010 
00011 
00012 @implementation Status
00013 
00014 - (id) init {
00015     self = [super init];
00016     if (self != nil) {
00017         tourn = NO;
00018         promoted = NO;     
00019         armsbomb = 0; 
00020         planets = 0;
00021         kills = 0; 
00022         losses = 0;
00023         timeElapsed = 0;
00024         timeprod = 0;
00025         observer = NO;
00026     }
00027     return self;
00028 }
00029 
00030 -(int) armiesBombed {
00031     return armsbomb;
00032 } 
00033 
00034 -(int) planets {
00035     return planets;
00036 }
00037 
00038 -(int) kills {
00039     return kills;
00040 }
00041 
00042 -(int) losses {
00043     return losses;
00044 }
00045 
00046 -(long) timeProductive {
00047     return timeprod;
00048 }
00049 
00050 -(void) setObserver:(bool)on {
00051     observer = on;
00052 }
00053 
00054 -(void) setPromoted:(bool)prom {
00055     promoted = prom;
00056 }
00057 
00058 -(void) updateTournament: (int)newTournament
00059             armiesBombed: (int)newArmiesBombed
00060             planetsTaken: (int)newPlanets
00061                    kills: (int)newKills 
00062                   losses: (int)newLosses
00063                     time: (int)newTime
00064                 timeProd: (int)newTimeProd {
00065     
00066     tourn    = newTournament;
00067     armsbomb = newArmiesBombed;
00068     planets  = newPlanets;
00069     kills    = newKills;
00070     losses   = newLosses;
00071     timeElapsed = newTime;
00072     timeprod = newTimeProd;
00073 }
00074 
00075 @end

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