#import <Utils.h>
Detailed Description
Definition at line 13 of file Utils.h.
Member Function Documentation
+ (int) generateRandomNumberFrom: |
|
(int) |
_min |
to: |
|
(int) |
_max |
|
|
| |
Generates a random number between the min and max. _min is included, _max isn't
- Parameters:
-
the | lower bound |
the | upper bound |
the | random number |
Definition at line 21 of file Utils.m.
Returns the passed MovementDecision enum as a string
- Parameters:
-
- Returns:
- the string equivalent
Definition at line 115 of file Utils.m.
Returns the passed BOOL as a string
- Parameters:
-
- Returns:
- the string equivalent
Definition at line 163 of file Utils.m.
Returns the passed Difficulty as a string
- Parameters:
-
- Returns:
- the NSString equivalent
Definition at line 173 of file Utils.m.
Returns the passed MachineLearningType enum as a string
- Parameters:
-
the | learning type to convert |
- Returns:
- the string equivalent
Definition at line 204 of file Utils.m.
Returns the passed GameObjectType enum as a string
- Parameters:
-
- Returns:
- the string equivalent
Definition at line 244 of file Utils.m.
Returns the passed GameRating enum as a string
- Parameters:
-
- Returns:
- the string equivalent
Definition at line 299 of file Utils.m.
Returns the passed CharacterState enum as a string
- Parameters:
-
- Returns:
- the string equivalent
Definition at line 338 of file Utils.m.
Gets the current date/time as an NSString.
- Parameters:
-
- Returns:
- the timestamp string
Definition at line 31 of file Utils.m.
+ (UIColor *) getUIColourFromRed: |
|
(int) |
_red |
green: |
|
(int) |
_green |
blue: |
|
(int) |
_blue |
|
|
| |
Converts a passed RBG colour into UIColor
- Parameters:
-
red | value |
green | value |
blue | value |
- Returns:
- the UIColor
Definition at line 51 of file Utils.m.
Prints out a list of all availiable fonts (in alphabetical order)
Definition at line 94 of file Utils.m.
Loads a plist with the passed filename
- Parameters:
-
Definition at line 76 of file Utils.m.
Converts seconds into a minute string
- Parameters:
-
- Returns:
- the minutes/seconds as a string
Definition at line 61 of file Utils.m.
The documentation for this class was generated from the following files: