00001 // 00002 // Phaser.h 00003 // MacTrek 00004 // 00005 // Created by Aqua on 23/04/2006. 00006 // Copyright 2006 Luky Soft. All rights reserved. 00007 // 00008 00009 #import <Cocoa/Cocoa.h> 00010 #import "Weapon.h" 00011 #import "Player.h" 00012 00013 #define PHASER_MAX_DISTANCE 6000 /* At this range a player can do damage with phasers */ 00014 #define PHASER_FREE 0x0 00015 #define PHASER_HIT 0x1 /* When it hits a person */ 00016 #define PHASER_MISS 0x2 00017 #define PHASER_HIT2 0x4 /* When it hits a photon */ 00018 00019 @interface Phaser : Weapon { 00020 Player *target; // Who's being hit (for drawing) 00021 } 00022 00023 - (void) setTarget:(Player *)target; 00024 - (Player*) target; 00025 - (char) statusChar; 00026 00027 @end