Data/Entity.h

00001 //
00002 //  Entity.h
00003 //  MacTrek
00004 //
00005 //  Created by Aqua on 27/04/2006.
00006 //  Copyright 2006 Luky Soft. All rights reserved.
00007 //
00008 
00009 #import <Cocoa/Cocoa.h>
00010 
00011 
00012 @interface Entity : NSObject {
00013     NSPoint position;
00014         float dir;                                                                      // Real direction
00015         int speed;                                                                      // Real speed
00016     float requestedDir;                                                 
00017         int   requestedSpeed;   
00018     bool  showInfo;
00019     int fuse;                                           // Life left in current state
00020     int maxfuse;                                        // max fuse, normalized for updates per second 
00021     int step; // steps in fuse
00022 }
00023 
00024 - (void) setNetrekFormatCourse:(char)newDir;
00025 - (void) setPosition:(NSPoint)pos;
00026 - (void) setCourse:(int)course;
00027 - (void) setSpeed:(int)speed;
00028 - (void) setRequestedCourse:(int)course;
00029 - (void) setRequestedSpeed:(int)speed;
00030 - (void) setShowInfo:(bool)show;
00031 - (void) setFuse:(int)newLevel;
00032 - (void) setMaxFuse:(int)newLevel;
00033 -(void) setFuseStep:(int)newLevel;
00034 
00035 - (int)  fuse;
00036 - (int)  maxfuse;
00037 - (NSPoint) position;
00038 - (NSPoint) predictedPosition;
00039 - (int) course;
00040 - (char) netrekFormatCourse;
00041 - (float) dirInRad;
00042 - (int) speed;
00043 - (int) requestedCourse;
00044 - (int) requestedSpeed;
00045 - (int) predictedCourse;
00046 - (bool)showInfo;
00047 - (void) increaseFuse;
00048 - (void) decreaseFuse;
00049 - (void) resetFuse;
00050 
00051 @end

Generated on Sat Aug 26 21:14:10 2006 for MacTrek by  doxygen 1.4.7