LCOV - code coverage report
Current view: top level - Core/Entities - PlayerEntityScriptMethods.h (source / functions) Hit Total Coverage
Test: coverxygen.info Lines: 0 36 0.0 %
Date: 2025-05-28 07:50:54 Functions: 0 0 -

          Line data    Source code
       1           0 : /*
       2             : 
       3             : PlayerEntityScriptMethods.h
       4             : 
       5             : Methods for use by scripting mechanisms.
       6             : 
       7             : 
       8             : Oolite
       9             : Copyright (C) 2004-2013 Giles C Williams and contributors
      10             : 
      11             : This program is free software; you can redistribute it and/or
      12             : modify it under the terms of the GNU General Public License
      13             : as published by the Free Software Foundation; either version 2
      14             : of the License, or (at your option) any later version.
      15             : 
      16             : This program is distributed in the hope that it will be useful,
      17             : but WITHOUT ANY WARRANTY; without even the implied warranty of
      18             : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19             : GNU General Public License for more details.
      20             : 
      21             : You should have received a copy of the GNU General Public License
      22             : along with this program; if not, write to the Free Software
      23             : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
      24             : MA 02110-1301, USA.
      25             : 
      26             : */
      27             : 
      28             : #import "PlayerEntity.h"
      29             : 
      30             : 
      31             : @interface PlayerEntity (ScriptMethods)
      32             : 
      33           0 : - (unsigned) score;
      34           0 : - (void) setScore:(unsigned)value;
      35             : 
      36           0 : - (double) creditBalance;
      37           0 : - (void) setCreditBalance:(double)value;
      38             : 
      39           0 : - (NSString *) dockedStationName;
      40           0 : - (NSString *) dockedStationDisplayName;
      41           0 : - (BOOL) dockedAtMainStation;
      42             : 
      43           0 : - (void) awardCommodityType:(NSString *)type amount:(OOCargoQuantity)amount;
      44             : 
      45           0 : - (void) resetScannerZoom;
      46             : 
      47           0 : - (OOGalaxyID) currentGalaxyID;
      48           0 : - (OOSystemID) currentSystemID;
      49             : 
      50           0 : - (void) setMissionChoice:(NSString *)newChoice;
      51           0 : - (void) setMissionChoice:(NSString *)newChoice withEvent:(BOOL) withEvent;
      52           0 : - (void) setMissionChoice:(NSString *)newChoice keyPress:(NSString *)keyPress;
      53           0 : - (void) setMissionChoice:(NSString *)newChoice keyPress:(NSString *)keyPress withEvent:(BOOL) withEvent;
      54           0 : - (void) allowMissionInterrupt;
      55             : 
      56           0 : - (OOTimeDelta) scriptTimer;
      57             : 
      58           0 : - (unsigned) systemPseudoRandom100;
      59           0 : - (unsigned) systemPseudoRandom256;
      60           0 : - (double) systemPseudoRandomFloat;
      61             : 
      62           0 : - (NSDictionary *) passengerContractMarker:(OOSystemID)system;
      63           0 : - (NSDictionary *) parcelContractMarker:(OOSystemID)system;
      64           0 : - (NSDictionary *) cargoContractMarker:(OOSystemID)system;
      65           0 : - (NSDictionary *) defaultMarker:(OOSystemID)system;
      66           0 : - (NSDictionary *) validatedMarker:(NSDictionary *)marker;
      67             : 
      68           0 : - (NSString *) keyBindingDescription2:(NSString *)binding;
      69           0 : - (NSString *) getKeyBindingDescription:(NSArray *)keyList;
      70           0 : - (NSString *) keyCodeDescription:(OOKeyCode)code;
      71           0 : - (NSString *) keyCodeDescriptionShort:(OOKeyCode)code;
      72             : 
      73           0 : - (NSString *) commanderKillsAsString;
      74           0 : - (NSString *) commanderBountyAsString;
      75           0 : - (NSString *) creditsFormattedForSubstitution;
      76           0 : - (NSString *) creditsFormattedForLegacySubstitution;
      77             : 
      78             : @end
      79             : 
      80             : 
      81             : /*      OOGalacticCoordinatesFromInternal()
      82             :         Given internal coordinates ranging from 0 to 255 on each axis, return
      83             :         corresponding coordinates in user-meaningful coordinates by scaling by
      84             :         0.4 on the X axis and 0.2 on the Y axis.
      85             :         
      86             :         OOInternalCoordinatesFromGalactic()
      87             :         Inverse operation.
      88             :         
      89             :         For valid floating-point comparisons, it is imperative that the same
      90             :         calculation be used consistently.
      91             :  */
      92           0 : Vector OOGalacticCoordinatesFromInternal(NSPoint internalCoordinates);
      93           0 : NSPoint OOInternalCoordinatesFromGalactic(Vector galacticCoordinates);

Generated by: LCOV version 1.14