Oolite 1.91.0.7668-250429-8542c40
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
OOEquipmentType(Conveniences) Category Reference

#include <OOEquipmentType.h>

Instance Methods

(OOTechLevelID- effectiveTechLevel
 

Detailed Description

Definition at line 171 of file OOEquipmentType.h.

Method Documentation

◆ effectiveTechLevel

- (OOTechLevelID) effectiveTechLevel

Extends class OOEquipmentType.

Definition at line 828 of file OOEquipmentType.m.

829{
830 OOTechLevelID tl;
831 id missionVar = nil;
832
833 tl = [self techLevel];
834 if (tl == kOOVariableTechLevel)
835 {
836 OOStandardsDeprecated([NSString stringWithFormat:@"TL99 is deprecated for %@",[self identifier]]);
837 if (!OOEnforceStandards())
838 {
839 missionVar = [PLAYER missionVariableForKey:[@"mission_TL_FOR_" stringByAppendingString:[self identifier]]];
840 tl = OOUIntegerFromObject(missionVar, tl);
841 }
842 }
843
844 return tl;
845}
OOINLINE NSInteger OOUIntegerFromObject(id object, NSUInteger defaultValue)
void OOStandardsDeprecated(NSString *message)
BOOL OOEnforceStandards(void)
return nil
NSUInteger OOTechLevelID
Definition OOTypes.h:204
@ kOOVariableTechLevel
Definition OOTypes.h:202

References effectiveTechLevel, OOEquipmentType::identifier, kOOVariableTechLevel, nil, OOEnforceStandards(), OOStandardsDeprecated(), OOUIntegerFromObject(), and OOEquipmentType::techLevel.

Referenced by effectiveTechLevel.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this category was generated from the following files: