#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Classes | |
struct | Vertex |
struct | Color |
struct | Train |
struct | Bezier |
struct | SegmentNode |
struct | SegmentNodes |
struct | FundNode |
struct | FreeNode |
struct | Tube |
struct | SCOBObject |
struct | Tree |
struct | SkipByte |
struct | Catwalk |
struct | SegmentStation |
struct | SegmentLift |
struct | SegmentTransport |
struct | SegmentBreak |
struct | SEGMSegment |
struct | NlTrack |
Defines | |
#define | LITTLE_ENDIAN_NL 0 |
#define | BIG_ENDIAN_NL 1 |
#define | NLIM 1 |
#define | TRCK 2 |
#define | INFO 3 |
#define | BEZR 4 |
#define | SEGM 5 |
#define | SUPP 6 |
#define | FUND 7 |
#define | RASC 8 |
#define | FREN 9 |
#define | TUBE 10 |
#define | CATW 11 |
#define | SCEN 12 |
#define | SCOB 13 |
#define | TERA 14 |
#define | ENVC 15 |
#define | CLASSIC_STEEL_LOOPING 0 |
#define | CORKSCREW_COASTER 1 |
#define | INVERTED_COASTER_2 2 |
#define | TWISTED_STEEL_COASTER 3 |
#define | INVERTED_COASTER_4 4 |
#define | HYPER_COASTER 5 |
#define | FLOORLESS_TWISTED_STEEL_COASTER 6 |
#define | STANDUP_TWISTED_STEEL_COASTER 7 |
#define | HYPER_COASTER_4 8 |
#define | WOODEN_COASTER_TRAILERED_2 9 |
#define | WOODEN_COASTER_CLASSIC_4 10 |
#define | WOODEN_COASTER_CLASSIC_6 11 |
#define | WOODEN_COASTER_TRAILERED_4 12 |
#define | LIM_LAUNCHED_COASTER 13 |
#define | INVERTED_FACE_TO_FACE_COASTER 14 |
#define | INVERTED_IMPULSE_COASTER 15 |
#define | VEKOMA_FLYING_DUTCHMAN 18 |
#define | MAURER_SOEHNE_SPINNING_COASTER 20 |
#define | GERSTLAUER_EURO_FIGHTER 36 |
#define | VEKOMA_MOTORBIKE_COASTER 38 |
#define | GERSTLAUER_BOBSLED_COASTER 39 |
#define | GERSTLAUER_SPINNING_COASTER 41 |
#define | GERSTLAUER_EURO_FIGHTER_2 47 |
#define | STEEL_LOOPING_COASTER 49 |
#define | VERKOMA_MINE_TRAIN_COASTER 34 |
#define | VERKOMA_MINE_TRAIN_COASTER_LOC 35 |
#define | MAURER_SOEHNE_X_CAR_COASTER 50 |
#define | SEGMENT_NORMAL 0 |
#define | SEGMENT_STATION 1 |
#define | SEGMENT_LIFT 2 |
#define | SEGMENT_TRANSPORT 3 |
#define | SEGMENT_BREAK 4 |
#define | SEGMENT_UNKNOWN 5 |
#define | NODE_FUND 1 |
#define | NODE_FREE 2 |
#define | NODE_SEGMENT 3 |
#define | RASC_TRACK_NODE 0 |
#define | RASC_NONE 1 |
#define | RASC_SINGLE 2 |
#define | RASC_COMPLEX 3 |
#define | RASC_INVERTED 4 |
#define | RASC_90_BANK 5 |
#define | RASC_SMALL_INVERTED 6 |
#define | RASC_SHAPE 7 |
#define | RASC_LOOPING_BOX 8 |
#define | TUBE_MEDIUM 0 |
#define | TUBE_LARGE 1 |
#define | TUBE_SMALL 2 |
#define | TUBE_L_BEAM 3 |
#define | TUBE_H_BEAM 4 |
#define | TUBE_X_WOOD 5 |
#define | TUBE_XX_LARGE 6 |
#define | TUBE_4_4_WOOD_BEAM 7 |
#define | TUBE_1_4_WOOD_BEAM 8 |
#define | TUBE_2_2_WOOD_BEAM 9 |
#define | MODE_NORMAL 0 |
#define | MODE_SHUTTLE 1 |
#define | toRad(value) value / 57.29577951 |
Functions | |
void | swap (char *v1, char *v2) |
void | SwapEndianFloat (float *val) |
void | SwapEndianInt (int *val) |
int | byteInt (char data[3], int endian) |
float | byteFloat (FILE *file, int endian) |
long | filelength (int f) |
char * | ReadBytes (FILE *file, size_t length) |
char | ReadByte (FILE *file) |
int | ReadBool (FILE *file) |
int | ReadKey (FILE *file) |
int | ReadInt (FILE *file) |
float | ReadFloat (FILE *file) |
void | ReadNull (FILE *file, size_t length) |
char * | ReadString (FILE *file, size_t length) |
Color | ReadColor (FILE *file) |
int | NlOpen (char *filename, NlTrack *Track) |
int | NlSave (char *filename, NlTrack *Track) |
char * | NlGetCoasterType (int type) |
int | addBezier (float posX, float posY, float posZ, float cp1X, float cp1Y, float cp1Z, float cp2X, float cp2Y, float cp2Z, float roll, int continuesRoll, int equalDistanceCP, int relativeRoll, NlTrack *Track) |
Add a bezier. | |
void | modifyBezier (int bezierindex, float posX, float posY, float posZ, float cp1X, float cp1Y, float cp1Z, float cp2X, float cp2Y, float cp2Z, float roll, int continuesRoll, int equalDistanceCP, int relativeRoll, NlTrack *Track) |
Modify a bezier. | |
void | deleteBezier (int bezierindex, NlTrack *Track) |
Delete a bezier. | |
Bezier | getBezier (int bezierindex, NlTrack *Track) |
Get a bezier. | |
int | getNumBeziers (NlTrack *Track) |
Get the number of the beziers. | |
int | setEnvc (char *envFilename, char *reservedString, NlTrack *Track) |
Set the environment filename. | |
char * | getEnvFilename (NlTrack *Track) |
Get the environment filename. | |
char * | getReservedString (NlTrack *Track) |
Get the reserved environment filename. | |
int | addFreeNode (float posX, float posY, float posZ, NlTrack *Track) |
Add a Free Node. | |
void | modifyFreeNode (int nodeindex, float posX, float posY, float posZ, NlTrack *Track) |
Modify a Free Node. | |
void | deleteFreeNode (int nodeindex, NlTrack *Track) |
Delete a Free Node. | |
FreeNode | getFreeNode (int nodeindex, NlTrack *Track) |
Get a Free Node. | |
int | getTotalFreeNodes (NlTrack *Track) |
Get the number of the free nodes. | |
int | addFundNode (int useSizeValue, float size, int useRotationValue, float rotation, char fundType, int flags, float posX, float posY, float posZ, NlTrack *Track) |
Add a Fundament Node. | |
FundNode | getFundNode (int fundindex, NlTrack *Track) |
int | modifyFundNode (int fundindex, int useSizeValue, float size, int useRotationValue, float rotation, char fundType, int flags, float posX, float posY, float posZ, NlTrack *Track) |
void | deleteFundNode (int fundindex, NlTrack *Track) |
int | getTotalFundNodes (NlTrack *Track) |
void | setAuthorComments (char *authorComments, NlTrack *Track) |
char * | getAuthorComments (NlTrack *Track) |
int | initNewNlTrack (NlTrack *Track) |
Initialize an new NlTrack. | |
void | setCoasterStyle (int style, NlTrack *Track) |
int | getCoasterStyle (NlTrack *Track) |
void | setMajor (int major, NlTrack *Track) |
int | getMajor (NlTrack *Track) |
void | setMinor (int minor, NlTrack *Track) |
int | getMinor (NlTrack *Track) |
void | setRevision (int revision, NlTrack *Track) |
int | getRevision (NlTrack *Track) |
void | setMarkup (int markup, NlTrack *Track) |
int | getMarkup (NlTrack *Track) |
void | setUse16friction (int use16friction, NlTrack *Track) |
int | getUse16friction (NlTrack *Track) |
int | addSegment (int segmenttype, int bezierindex, int individualTrackColor, Color trackSpineColor, Color trackRailColor, Color trackCrosstileColor, int useTunnel, int flags, NlTrack *Track) |
void | modifySegment (int segmenttype, int bezierindex, int individualTrackColor, Color trackSpineColor, Color trackRailColor, Color trackCrosstileColor, int useTunnel, int flags, NlTrack *Track) |
SEGMSegment | getSegment (int bezierindex, NlTrack *Track) |
void | deleteSegment (int segmenttype, NlTrack *Track) |
int | getTotalSegments (NlTrack *Track) |
void | setSegmentStation (int bezierindex, float waitAvg, float waitMin, float waitMax, float waitDev, char entranceSide, char stationType, int sync, char stationHidden, float mainBrakeDecel, char numPasses, char reverseCableLift, int hideBreaks, int usePreBrake, float preBrakeSpeedLimit, float preBrakeDecel, float preBrakeHyster, int useTransportation, float transportSpeed, float transportAccel, float transportDecel, char transportType, float launchAccel, int useLaunch, NlTrack *Track) |
SegmentStation | getSegmentStation (int bezierindex, NlTrack *Track) |
void | setSegmentLift (int bezierindex, char liftStyle, float speed, float accel, float decel, int railingLeft, int railingRight, int flags, NlTrack *Track) |
SegmentLift | getSegmentLift (int bezierindex, NlTrack *Track) |
void | setSegmentTransport (int bezierindex, float speed, float accel, float decel, char transportStyle, int railingLeft, int railingRight, char speedUpPasses, char speedDown, float speedDownSpeedLimit, NlTrack *Track) |
SegmentTransport | getSegmentTransport (int bezierindex, NlTrack *Track) |
void | setSegmentBreak (int bezierindex, float speedLimit, float decel, float hyster, float triggerPos, int blockSegment, int useTransport, float transportSpeed, float transportAccel, float transportDecel, int railingLeft, int railingRight, int completeStop, char stopWaitTime, int transportType, int launch, float launchAccel, int newTriggerBehaviour, NlTrack *Track) |
SegmentBreak | getSegmentBreak (int bezierindex, NlTrack *Track) |
Vertex | getPosSegmentNode (int index, int segindex, NlTrack *Track) |
Color | createColorARGB (int a, int r, int g, int b) |
float | toG (float index) |
float | toNewton (float index) |
float | toMs (float index) |
float | toKmh (float index) |
void | setNumTrains (int numTrains, NlTrack *Track) |
int | getNumTrains (NlTrack *Track) |
void | setNumCars (int numCars, NlTrack *Track) |
int | getNumCars (NlTrack *Track) |
int | setTrainProperty (int trainindex, char *textureFilename, int useIndividualColor, Color seatColor, Color restraintColor, Color trainColor, Color gearColor, NlTrack *Track) |
Train | getTrainProperty (int trainindex, NlTrack *Track) |
Color | getTrackSpineColor (NlTrack *Track) |
Color | getTrackRailColor (NlTrack *Track) |
Color | getTrackCrosstieColor (NlTrack *Track) |
Color | getTrackSupportsColor (NlTrack *Track) |
Color | getTrackTrainSeatColor (NlTrack *Track) |
Color | getTrackTrainRestraintColor (NlTrack *Track) |
Color | getTrackTrainColor (NlTrack *Track) |
Color | getTrackTrainGearColor (NlTrack *Track) |
Color | getTrackTunnelColor (NlTrack *Track) |
int | getTrackUseTunnelColor (NlTrack *Track) |
void | setTrackSpineColor (NlTrack *Track, Color trackSpineColor) |
void | setTrackRailColor (NlTrack *Track, Color trackRailColor) |
void | setTrackCrosstieColor (NlTrack *Track, Color trackCrosstieColor) |
void | setTrackSupportsColor (NlTrack *Track, Color supportsColor) |
void | setTrackTrainSeatColor (NlTrack *Track, Color trainSeatColor) |
void | setTrackTrainRestraintColor (NlTrack *Track, Color trainRestraintColor) |
void | setTrackTrainColor (NlTrack *Track, Color trainColor) |
void | setTrackTrainGearColor (NlTrack *Track, Color trainGearColor) |
void | setTrackTunnelColor (NlTrack *Track, Color tunnelColor) |
void | setTrackUseTunnelColor (NlTrack *Track, int useTunnelColor) |
int | addSupport (int n1type, int n1index, int n1segIndex, int n2type, int n2index, int n2segIndex, int tubeType, int flags, int rotation, NlTrack *Track) |
Add a Support. | |
void | modifySupport (int suppindex, int tubeType, int flags, int rotation, NlTrack *Track) |
void | deleteSupport (int suppindex, NlTrack *Track) |
Tube | getSupport (int suppindex, NlTrack *Track) |
int | getTotalSupport (NlTrack *Track) |
int | addTrackNode (int segindex, int type, float pos, NlTrack *Track) |
void | modifyTrackNode (int segindex, int rascindex, int type, float pos, NlTrack *Track) |
void | deleteTrackNode (int segindex, int rascindex, NlTrack *Track) |
SegmentNode | getTrackNode (int segindex, int rascindex, NlTrack *Track) |
int | getTotalTrackNodes (int segindex, NlTrack *Track) |
#define BEZR 4 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define BIG_ENDIAN_NL 1 |
Referenced by byteFloat(), byteInt(), ReadFloat(), and ReadInt().
#define CATW 11 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define CLASSIC_STEEL_LOOPING 0 |
Referenced by NlGetCoasterType().
#define CORKSCREW_COASTER 1 |
Referenced by NlGetCoasterType().
#define ENVC 15 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define FLOORLESS_TWISTED_STEEL_COASTER 6 |
Referenced by NlGetCoasterType().
#define FREN 9 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define FUND 7 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define GERSTLAUER_BOBSLED_COASTER 39 |
Referenced by NlGetCoasterType().
#define GERSTLAUER_EURO_FIGHTER 36 |
Referenced by NlGetCoasterType().
#define GERSTLAUER_EURO_FIGHTER_2 47 |
Referenced by NlGetCoasterType().
#define GERSTLAUER_SPINNING_COASTER 41 |
Referenced by NlGetCoasterType().
#define HYPER_COASTER 5 |
Referenced by NlGetCoasterType().
#define HYPER_COASTER_4 8 |
Referenced by NlGetCoasterType().
#define INFO 3 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define INVERTED_COASTER_2 2 |
Referenced by NlGetCoasterType().
#define INVERTED_COASTER_4 4 |
Referenced by NlGetCoasterType().
#define INVERTED_FACE_TO_FACE_COASTER 14 |
Referenced by NlGetCoasterType().
#define INVERTED_IMPULSE_COASTER 15 |
Referenced by NlGetCoasterType().
#define LIM_LAUNCHED_COASTER 13 |
Referenced by NlGetCoasterType().
#define LITTLE_ENDIAN_NL 0 |
Referenced by byteFloat(), and byteInt().
#define MAURER_SOEHNE_SPINNING_COASTER 20 |
Referenced by NlGetCoasterType().
#define MAURER_SOEHNE_X_CAR_COASTER 50 |
Referenced by NlGetCoasterType().
#define MODE_NORMAL 0 |
Referenced by initNewNlTrack().
#define MODE_SHUTTLE 1 |
#define NLIM 1 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define NODE_FREE 2 |
#define NODE_FUND 1 |
#define NODE_SEGMENT 3 |
#define RASC 8 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define RASC_90_BANK 5 |
#define RASC_COMPLEX 3 |
#define RASC_INVERTED 4 |
#define RASC_LOOPING_BOX 8 |
#define RASC_NONE 1 |
#define RASC_SHAPE 7 |
#define RASC_SINGLE 2 |
#define RASC_SMALL_INVERTED 6 |
#define RASC_TRACK_NODE 0 |
#define SCEN 12 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define SCOB 13 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define SEGM 5 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define SEGMENT_BREAK 4 |
Referenced by addSegment(), modifySegment(), NlOpen(), and NlSave().
#define SEGMENT_LIFT 2 |
Referenced by addSegment(), modifySegment(), NlOpen(), and NlSave().
#define SEGMENT_NORMAL 0 |
Referenced by addSegment(), modifySegment(), NlOpen(), and NlSave().
#define SEGMENT_STATION 1 |
Referenced by addSegment(), modifySegment(), NlOpen(), and NlSave().
#define SEGMENT_TRANSPORT 3 |
Referenced by addSegment(), modifySegment(), NlOpen(), and NlSave().
#define SEGMENT_UNKNOWN 5 |
#define STANDUP_TWISTED_STEEL_COASTER 7 |
Referenced by NlGetCoasterType().
#define STEEL_LOOPING_COASTER 49 |
Referenced by NlGetCoasterType().
#define SUPP 6 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define TERA 14 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define toRad | ( | value | ) | value / 57.29577951 |
#define TRCK 2 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define TUBE 10 |
Referenced by NlOpen(), NlSave(), ReadKey(), and WriteKey().
#define TUBE_1_4_WOOD_BEAM 8 |
#define TUBE_2_2_WOOD_BEAM 9 |
#define TUBE_4_4_WOOD_BEAM 7 |
#define TUBE_H_BEAM 4 |
#define TUBE_L_BEAM 3 |
#define TUBE_LARGE 1 |
#define TUBE_MEDIUM 0 |
#define TUBE_SMALL 2 |
#define TUBE_X_WOOD 5 |
#define TUBE_XX_LARGE 6 |
#define TWISTED_STEEL_COASTER 3 |
Referenced by NlGetCoasterType().
#define VEKOMA_FLYING_DUTCHMAN 18 |
Referenced by NlGetCoasterType().
#define VEKOMA_MOTORBIKE_COASTER 38 |
Referenced by NlGetCoasterType().
#define VERKOMA_MINE_TRAIN_COASTER 34 |
Referenced by NlGetCoasterType().
#define VERKOMA_MINE_TRAIN_COASTER_LOC 35 |
Referenced by NlGetCoasterType().
#define WOODEN_COASTER_CLASSIC_4 10 |
Referenced by NlGetCoasterType().
#define WOODEN_COASTER_CLASSIC_6 11 |
Referenced by NlGetCoasterType().
#define WOODEN_COASTER_TRAILERED_2 9 |
Referenced by NlGetCoasterType().
#define WOODEN_COASTER_TRAILERED_4 12 |
Referenced by NlGetCoasterType().
int addBezier | ( | float | posX, | |
float | posY, | |||
float | posZ, | |||
float | cp1X, | |||
float | cp1Y, | |||
float | cp1Z, | |||
float | cp2X, | |||
float | cp2Y, | |||
float | cp2Z, | |||
float | roll, | |||
int | continuesRoll, | |||
int | equalDistanceCP, | |||
int | relativeRoll, | |||
NlTrack * | Track | |||
) |
Add a bezier.
posX | is the x-axis position of the bezier | |
posY | is the y-axis position of the bezier | |
posZ | is the z-axis position of the bezier | |
cp1X | is the x-axis position of the first controll point | |
cp1Y | is the y-axis position of the first controll point | |
cp1Z | is the z-axis position of the first controll point | |
cp2X | is the x-axis position of the second controll point | |
cp2Y | is the y-axis position of the second controll point | |
cp2Z | is the z-axis position of the second controll point | |
roll | is the banking in radian. To convert from degree to radian, please use toRad(). | |
continuesRoll | is the controll roll attribute of the bezier. 1 for true and 0 for false. | |
equalDistanceCP | Will determine that the controll points are equal. 1 for true and 0 for false. | |
relativeRoll | is the relative roll attribute of the bezier. 1 for true and 0 for false. | |
Track | a pointer to the NlTrack |
References NlTrack::beziers, NlTrack::bezrsize, Bezier::continuesRoll, Bezier::cp1X, Bezier::cp1Y, Bezier::cp1Z, Bezier::cp2X, Bezier::cp2Y, Bezier::cp2Z, Bezier::equalDistanceCP, NlTrack::numBeziers, Bezier::posX, Bezier::posY, Bezier::posZ, Bezier::relativeRoll, and Bezier::roll.
int addFreeNode | ( | float | posX, | |
float | posY, | |||
float | posZ, | |||
NlTrack * | Track | |||
) |
Add a Free Node.
posX | is the x-axis position of the node | |
posY | is the y-axis position of the node | |
posZ | is the z-axis position of the node | |
Track | a pointer to the NlTrack |
References NlTrack::freeNodes, NlTrack::frensize, FreeNode::posX, FreeNode::posY, FreeNode::posZ, and NlTrack::totalFreeNodes.
int addFundNode | ( | int | useSizeValue, | |
float | size, | |||
int | useRotationValue, | |||
float | rotation, | |||
char | fundType, | |||
int | flags, | |||
float | posX, | |||
float | posY, | |||
float | posZ, | |||
NlTrack * | Track | |||
) |
Add a Fundament Node.
useSizeValue | contains the value, whether their own size to be used | |
size | is the size of the support, if useSizeValue is 1 | |
useRotationValue | contains the value, whether their own rotation to be used | |
rotation | is the x-axis position of the node | |
posX | is the rotation of the support in radian, if rotation is 1. To convert from degree to radian, please use toRad(). | |
posX | is the x-axis position of the node | |
posY | is the y-axis position of the node | |
posZ | is the z-axis position of the node | |
Track | a pointer to the NlTrack |
References FundNode::flags, NlTrack::fundNodes, NlTrack::fundsize, FundNode::fundType, FundNode::posX, FundNode::posY, FundNode::posZ, FundNode::rotation, FundNode::size, NlTrack::totalFundNodes, FundNode::useRotationValue, and FundNode::useSizeValue.
int addSegment | ( | int | segmenttype, | |
int | bezierindex, | |||
int | individualTrackColor, | |||
Color | trackSpineColor, | |||
Color | trackRailColor, | |||
Color | trackCrosstileColor, | |||
int | useTunnel, | |||
int | flags, | |||
NlTrack * | Track | |||
) |
References SEGMSegment::flags, SEGMSegment::individualTrackColor, NlTrack::rascsize, NlTrack::seg, SEGMENT_BREAK, SEGMENT_LIFT, SEGMENT_NORMAL, SEGMENT_STATION, SEGMENT_TRANSPORT, NlTrack::segmsize, NlTrack::segs, SEGMSegment::size, SegmentNodes::totalRASCs, NlTrack::totalSegment, NlTrack::totalSegments, SEGMSegment::trackCrosstileColor, SEGMSegment::trackRailColor, SEGMSegment::trackSpineColor, SEGMSegment::type, and SEGMSegment::useTunnel.
int addSupport | ( | int | n1type, | |
int | n1index, | |||
int | n1segIndex, | |||
int | n2type, | |||
int | n2index, | |||
int | n2segIndex, | |||
int | tubeType, | |||
int | flags, | |||
int | rotation, | |||
NlTrack * | Track | |||
) |
Add a Support.
n1type | is the type of the first node. There is few Pre-defined values: NODE_FUND for a fundament node NODE_FREE for a free node NODE_SEGMENT for a segment node | |
n1index | is the index number of the first node | |
n1segIndex | is needed, when n1type is NODE_SEGMENT. Its the index number of the segment, where the first node is added. | |
n2type | is the type of the second node. There is few Pre-defined values: NODE_FUND for a fundament node NODE_FREE for a free node NODE_SEGMENT for a segment node | |
n2index | is the index number of the second node | |
n2segIndex | is needed, when n2type is NODE_SEGMENT. Its the index number of the segment, where the second node is added. | |
tubeType | is the tube type. There is few Pre-define values: TUBE_MEDIUM medium sized tube TUBE_LARGE large sized tube TUBE_SMALL small sized tube TUBE_L_BEAM L Beam TUBE_H_BEAM H Beam TUBE_X_WOOD X Wood TUBE_XX_LARGE XX Large TUBE_4_4_WOOD_BEAM 4x4 Wood Beam TUBE_1_4_WOOD_BEAM 1x4 Wood Beam TUBE_2_2_WOOD_BEAM 2x2 Wood Beam | |
flags | of the support. | |
rotation | a is the support rotation in radian. To convert from degree to radian, please use toRad(). | |
Track | a pointer to the NlTrack |
References Tube::flags, Tube::n1index, Tube::n1segIndex, Tube::n1type, Tube::n2index, Tube::n2segIndex, Tube::n2type, Tube::rotation, NlTrack::totalTubes, NlTrack::tubes, NlTrack::tubesize, and Tube::tubeType.
int addTrackNode | ( | int | segindex, | |
int | type, | |||
float | pos, | |||
NlTrack * | Track | |||
) |
References SegmentNodes::data, NlTrack::frensize, SegmentNode::pos, NlTrack::seg, SegmentNodes::totalRASCs, and SegmentNode::type.
float byteFloat | ( | FILE * | file, | |
int | endian | |||
) |
int byteInt | ( | char | data[3], | |
int | endian | |||
) |
Color createColorARGB | ( | int | a, | |
int | r, | |||
int | g, | |||
int | b | |||
) |
void deleteBezier | ( | int | bezierindex, | |
NlTrack * | Track | |||
) |
Delete a bezier.
bezierindex | is the index value of the deleted bezier | |
Track | a pointer to the NlTrack |
References NlTrack::beziers, NlTrack::bezrsize, and NlTrack::numBeziers.
void deleteFreeNode | ( | int | nodeindex, | |
NlTrack * | Track | |||
) |
Delete a Free Node.
nodeindex | is the index number of the node, which is deleted. | |
Track | a pointer to the NlTrack |
References NlTrack::freeNodes, NlTrack::frensize, and NlTrack::totalFreeNodes.
void deleteFundNode | ( | int | fundindex, | |
NlTrack * | Track | |||
) |
References NlTrack::fundNodes, NlTrack::fundsize, and NlTrack::totalFundNodes.
void deleteSegment | ( | int | segmenttype, | |
NlTrack * | Track | |||
) |
References NlTrack::rascsize, NlTrack::seg, NlTrack::segmsize, NlTrack::segs, NlTrack::totalSegment, and NlTrack::totalSegments.
void deleteSupport | ( | int | suppindex, | |
NlTrack * | Track | |||
) |
References NlTrack::totalTubes, NlTrack::tubes, and NlTrack::tubesize.
void deleteTrackNode | ( | int | segindex, | |
int | rascindex, | |||
NlTrack * | Track | |||
) |
References SegmentNodes::data, NlTrack::frensize, NlTrack::seg, and SegmentNodes::totalRASCs.
long filelength | ( | int | f | ) |
Referenced by NlOpen().
char* getAuthorComments | ( | NlTrack * | Track | ) |
References NlTrack::authorComments.
Get a bezier.
bezierindex | is the index value of the deleted bezier | |
Track | a pointer to the NlTrack |
References NlTrack::beziers.
int getCoasterStyle | ( | NlTrack * | Track | ) |
References NlTrack::style.
char* getEnvFilename | ( | NlTrack * | Track | ) |
Get the environment filename.
Track | a pointer to the NlTrack |
References NlTrack::envFilename.
Get a Free Node.
nodeindex | is the index number of the node, which we like to get. | |
Track | a pointer to the NlTrack |
References NlTrack::freeNodes.
References NlTrack::fundNodes.
int getMajor | ( | NlTrack * | Track | ) |
References NlTrack::major.
int getMarkup | ( | NlTrack * | Track | ) |
References NlTrack::markup.
int getMinor | ( | NlTrack * | Track | ) |
References NlTrack::minor.
int getNumBeziers | ( | NlTrack * | Track | ) |
Get the number of the beziers.
Track | a pointer to the NlTrack |
References NlTrack::numBeziers.
int getNumCars | ( | NlTrack * | Track | ) |
References NlTrack::numCars.
int getNumTrains | ( | NlTrack * | Track | ) |
References NlTrack::numTrains.
char* getReservedString | ( | NlTrack * | Track | ) |
Get the reserved environment filename.
Track | a pointer to the NlTrack |
References NlTrack::reservedString.
int getRevision | ( | NlTrack * | Track | ) |
References NlTrack::revision.
SEGMSegment getSegment | ( | int | bezierindex, | |
NlTrack * | Track | |||
) |
References NlTrack::segs.
SegmentBreak getSegmentBreak | ( | int | bezierindex, | |
NlTrack * | Track | |||
) |
References SEGMSegment::breaks, and NlTrack::segs.
SegmentLift getSegmentLift | ( | int | bezierindex, | |
NlTrack * | Track | |||
) |
References SEGMSegment::lift, and NlTrack::segs.
SegmentStation getSegmentStation | ( | int | bezierindex, | |
NlTrack * | Track | |||
) |
References NlTrack::segs, and SEGMSegment::station.
SegmentTransport getSegmentTransport | ( | int | bezierindex, | |
NlTrack * | Track | |||
) |
References NlTrack::segs, and SEGMSegment::transport.
References NlTrack::tubes.
int getTotalFreeNodes | ( | NlTrack * | Track | ) |
Get the number of the free nodes.
Track | a pointer to the NlTrack |
References NlTrack::totalFreeNodes.
int getTotalFundNodes | ( | NlTrack * | Track | ) |
References NlTrack::totalFundNodes.
int getTotalSegments | ( | NlTrack * | Track | ) |
References NlTrack::totalSegments.
int getTotalSupport | ( | NlTrack * | Track | ) |
References NlTrack::totalTubes.
int getTotalTrackNodes | ( | int | segindex, | |
NlTrack * | Track | |||
) |
References NlTrack::seg, and SegmentNodes::totalRASCs.
References NlTrack::trackCrosstieColor.
SegmentNode getTrackNode | ( | int | segindex, | |
int | rascindex, | |||
NlTrack * | Track | |||
) |
References SegmentNodes::data, and NlTrack::seg.
References NlTrack::trackRailColor.
References NlTrack::trackSpineColor.
References NlTrack::supportsColor.
References NlTrack::trainColor.
References NlTrack::trainGearColor.
References NlTrack::trainRestraintColor.
References NlTrack::trainSeatColor.
References NlTrack::tunnelColor.
int getTrackUseTunnelColor | ( | NlTrack * | Track | ) |
References NlTrack::useTunnelColor.
int getUse16friction | ( | NlTrack * | Track | ) |
References NlTrack::use16friction.
int initNewNlTrack | ( | NlTrack * | Track | ) |
Initialize an new NlTrack.
Track | a pointer to the NlTrack |
References NlTrack::authorComments, NlTrack::beziers, NlTrack::bezrsize, NlTrack::catwalks, NlTrack::catwsize, Bezier::continuesRoll, Bezier::cp1X, Bezier::cp1Y, Bezier::cp1Z, Bezier::cp2X, Bezier::cp2Y, Bezier::cp2Z, createColorARGB(), NlTrack::envcsize, NlTrack::envFilename, Bezier::equalDistanceCP, NlTrack::freeNodes, NlTrack::frensize, NlTrack::fundNodes, NlTrack::fundsize, Train::gearColor, NlTrack::infosize, NlTrack::major, NlTrack::markup, NlTrack::minor, MODE_NORMAL, NlTrack::nlimsize, NlTrack::numBeziers, NlTrack::numCars, NlTrack::numTrains, NlTrack::objects, Bezier::posX, Bezier::posY, Bezier::posZ, NlTrack::rascsize, Bezier::relativeRoll, NlTrack::reserved, NlTrack::reserved0, NlTrack::reserved1, NlTrack::reserved2, NlTrack::reserved3, NlTrack::reservedString, Train::restraintColor, NlTrack::revision, Bezier::roll, NlTrack::scensize, NlTrack::scobsize, Train::seatColor, NlTrack::seg, NlTrack::segmsize, NlTrack::style, NlTrack::supportsColor, NlTrack::suppsize, Train::textureFilename, NlTrack::totalCatwalks, NlTrack::totalFreeNodes, NlTrack::totalFundNodes, NlTrack::totalObjects, NlTrack::totalSegment, NlTrack::totalSegments, NlTrack::totalTrees, NlTrack::totalTubes, NlTrack::trackClosedCircuit, NlTrack::trackCrosstieColor, NlTrack::trackMode, NlTrack::trackRailColor, NlTrack::trackSpineColor, NlTrack::train, NlTrack::trainColor, Train::trainColor, NlTrack::trainGearColor, NlTrack::trainRestraintColor, NlTrack::trainSeatColor, NlTrack::trcksize, NlTrack::trees, NlTrack::tubes, NlTrack::tubesize, NlTrack::tunnelColor, NlTrack::use16friction, Train::useIndividualColor, and NlTrack::useTunnelColor.
void modifyBezier | ( | int | bezierindex, | |
float | posX, | |||
float | posY, | |||
float | posZ, | |||
float | cp1X, | |||
float | cp1Y, | |||
float | cp1Z, | |||
float | cp2X, | |||
float | cp2Y, | |||
float | cp2Z, | |||
float | roll, | |||
int | continuesRoll, | |||
int | equalDistanceCP, | |||
int | relativeRoll, | |||
NlTrack * | Track | |||
) |
Modify a bezier.
bezierindex | is the index value of the modified bezier | |
posX | is the x-axis position of the bezier | |
posY | is the y-axis position of the bezier | |
posZ | is the z-axis position of the bezier | |
cp1X | is the x-axis position of the first controll point | |
cp1Y | is the y-axis position of the first controll point | |
cp1Z | is the z-axis position of the first controll point | |
cp2X | is the x-axis position of the second controll point | |
cp2Y | is the y-axis position of the second controll point | |
cp2Z | is the z-axis position of the second controll point | |
roll | is the banking in radian. To convert from degree to radian, please use toRad(). | |
continuesRoll | is the controll roll attribute of the bezier. 1 for true and 0 for false. | |
equalDistanceCP | Will determine that the controll points are equal. 1 for true and 0 for false. | |
relativeRoll | is the relative roll attribute of the bezier. 1 for true and 0 for false. | |
Track | a pointer to the NlTrack |
References NlTrack::beziers, Bezier::continuesRoll, Bezier::cp1X, Bezier::cp1Y, Bezier::cp1Z, Bezier::cp2X, Bezier::cp2Y, Bezier::cp2Z, Bezier::equalDistanceCP, Bezier::posX, Bezier::posY, Bezier::posZ, Bezier::relativeRoll, and Bezier::roll.
void modifyFreeNode | ( | int | nodeindex, | |
float | posX, | |||
float | posY, | |||
float | posZ, | |||
NlTrack * | Track | |||
) |
Modify a Free Node.
nodeindex | is the index number of the node, which is modified. | |
posX | is the x-axis position of the node | |
posY | is the y-axis position of the node | |
posZ | is the z-axis position of the node | |
Track | a pointer to the NlTrack |
References NlTrack::freeNodes, FreeNode::posX, FreeNode::posY, and FreeNode::posZ.
int modifyFundNode | ( | int | fundindex, | |
int | useSizeValue, | |||
float | size, | |||
int | useRotationValue, | |||
float | rotation, | |||
char | fundType, | |||
int | flags, | |||
float | posX, | |||
float | posY, | |||
float | posZ, | |||
NlTrack * | Track | |||
) |
void modifySegment | ( | int | segmenttype, | |
int | bezierindex, | |||
int | individualTrackColor, | |||
Color | trackSpineColor, | |||
Color | trackRailColor, | |||
Color | trackCrosstileColor, | |||
int | useTunnel, | |||
int | flags, | |||
NlTrack * | Track | |||
) |
References SEGMSegment::flags, SEGMSegment::individualTrackColor, SEGMENT_BREAK, SEGMENT_LIFT, SEGMENT_NORMAL, SEGMENT_STATION, SEGMENT_TRANSPORT, NlTrack::segs, SEGMSegment::size, SEGMSegment::trackCrosstileColor, SEGMSegment::trackRailColor, SEGMSegment::trackSpineColor, SEGMSegment::type, and SEGMSegment::useTunnel.
void modifySupport | ( | int | suppindex, | |
int | tubeType, | |||
int | flags, | |||
int | rotation, | |||
NlTrack * | Track | |||
) |
References Tube::flags, Tube::rotation, NlTrack::tubes, and Tube::tubeType.
void modifyTrackNode | ( | int | segindex, | |
int | rascindex, | |||
int | type, | |||
float | pos, | |||
NlTrack * | Track | |||
) |
References SegmentNodes::data, SegmentNode::pos, NlTrack::seg, and SegmentNode::type.
char* NlGetCoasterType | ( | int | type | ) |
References CLASSIC_STEEL_LOOPING, CORKSCREW_COASTER, FLOORLESS_TWISTED_STEEL_COASTER, GERSTLAUER_BOBSLED_COASTER, GERSTLAUER_EURO_FIGHTER, GERSTLAUER_EURO_FIGHTER_2, GERSTLAUER_SPINNING_COASTER, HYPER_COASTER, HYPER_COASTER_4, INVERTED_COASTER_2, INVERTED_COASTER_4, INVERTED_FACE_TO_FACE_COASTER, INVERTED_IMPULSE_COASTER, LIM_LAUNCHED_COASTER, MAURER_SOEHNE_SPINNING_COASTER, MAURER_SOEHNE_X_CAR_COASTER, STANDUP_TWISTED_STEEL_COASTER, STEEL_LOOPING_COASTER, TWISTED_STEEL_COASTER, VEKOMA_FLYING_DUTCHMAN, VEKOMA_MOTORBIKE_COASTER, VERKOMA_MINE_TRAIN_COASTER, VERKOMA_MINE_TRAIN_COASTER_LOC, WOODEN_COASTER_CLASSIC_4, WOODEN_COASTER_CLASSIC_6, WOODEN_COASTER_TRAILERED_2, and WOODEN_COASTER_TRAILERED_4.
Referenced by main().
int NlOpen | ( | char * | filename, | |
NlTrack * | Track | |||
) |
References SCOBObject::_11, SCOBObject::_12, SCOBObject::_13, SCOBObject::_14, SCOBObject::_21, SCOBObject::_22, SCOBObject::_23, SCOBObject::_24, SCOBObject::_31, SCOBObject::_32, SCOBObject::_33, SCOBObject::_34, SCOBObject::_41, SCOBObject::_42, SCOBObject::_43, SCOBObject::_44, SegmentTransport::accel, SegmentLift::accel, NlTrack::authorComments, NlTrack::beziers, BEZR, NlTrack::bezrsize, SegmentBreak::blockSegment, SEGMSegment::breaks, CATW, NlTrack::catwalks, Catwalk::catwalkType, NlTrack::catwsize, NlTrack::chunkscen, SegmentBreak::completeStop, Bezier::continuesRoll, Bezier::cp1X, Bezier::cp1Y, Bezier::cp1Z, Bezier::cp2X, Bezier::cp2Y, Bezier::cp2Z, SegmentNodes::data, SegmentBreak::decel, SegmentTransport::decel, SegmentLift::decel, NlTrack::detailTextureFilename, SCOBObject::dummyString, NlTrack::enableWater, SegmentStation::entranceSide, ENVC, NlTrack::envcsize, NlTrack::envFilename, Bezier::equalDistanceCP, filelength(), Catwalk::flags, Tube::flags, FreeNode::flags, FundNode::flags, SegmentLift::flags, SEGMSegment::flags, Catwalk::fn1index, Catwalk::fn2index, Catwalk::fn3index, Catwalk::fn4index, NlTrack::freeNodes, FREN, NlTrack::frensize, FUND, NlTrack::fundNodes, NlTrack::fundsize, FundNode::fundType, Train::gearColor, NlTrack::groundTextureFilename, SegmentStation::hideBreaks, SegmentBreak::hyster, SEGMSegment::individualTrackColor, INFO, NlTrack::infosize, SegmentBreak::launch, SegmentBreak::launchAccel, SegmentStation::launchAccel, SEGMSegment::lift, SegmentLift::liftStyle, SegmentStation::mainBrakeDecel, NlTrack::major, NlTrack::markup, NlTrack::minor, Tube::n1index, Tube::n1segIndex, Tube::n1type, Tube::n2index, Tube::n2segIndex, Tube::n2type, SegmentBreak::newTriggerBehaviour, NLIM, NlTrack::nlimsize, NlTrack::numBeziers, NlTrack::numCars, NlTrack::numDetailTextureRepeats, NlTrack::numGroundTextureRepeats, SegmentStation::numPasses, NlTrack::numTrains, NlTrack::numWaterTextureRepeats, SCOBObject::objectFilename, NlTrack::objects, SegmentNode::pos, Tree::posX, FreeNode::posX, FundNode::posX, Bezier::posX, Tree::posY, FreeNode::posY, FundNode::posY, Bezier::posY, Tree::posZ, FreeNode::posZ, FundNode::posZ, Bezier::posZ, SegmentStation::preBrakeDecel, SegmentStation::preBrakeHyster, SegmentStation::preBrakeSpeedLimit, SegmentBreak::railingLeft, SegmentTransport::railingLeft, SegmentLift::railingLeft, SegmentBreak::railingRight, SegmentTransport::railingRight, SegmentLift::railingRight, RASC, NlTrack::rascsize, ReadBool(), ReadByte(), ReadColor(), ReadFloat(), ReadInt(), ReadKey(), ReadNull(), ReadString(), Bezier::relativeRoll, SkipByte::reserved, NlTrack::reserved, NlTrack::reserved0, NlTrack::reserved1, NlTrack::reserved2, NlTrack::reserved3, NlTrack::reservedString, Train::restraintColor, SegmentStation::reverseCableLift, NlTrack::revision, Bezier::roll, Tree::rotation, Tube::rotation, FundNode::rotation, NlTrack::scaleX, NlTrack::scaleZ, SCEN, NlTrack::scensize, SCOB, NlTrack::scobsize, NlTrack::seaLevel, Train::seatColor, NlTrack::seg, SEGM, SEGMENT_BREAK, SEGMENT_LIFT, SEGMENT_NORMAL, SEGMENT_STATION, SEGMENT_TRANSPORT, NlTrack::segmsize, NlTrack::segs, FundNode::size, SEGMSegment::size, NlTrack::sizeX, NlTrack::sizeZ, Catwalk::skipByteCount, Catwalk::skipBytes, SegmentTransport::speed, SegmentLift::speed, SegmentTransport::speedDown, SegmentTransport::speedDownSpeedLimit, SegmentBreak::speedLimit, SegmentTransport::speedUpPasses, SEGMSegment::station, SegmentStation::stationHidden, SegmentStation::stationType, SegmentBreak::stopWaitTime, NlTrack::style, SUPP, NlTrack::supportsColor, NlTrack::suppsize, SegmentStation::sync, TERA, NlTrack::terasize, NlTrack::terrainHeight, Train::textureFilename, NlTrack::totalCatwalks, NlTrack::totalFreeNodes, NlTrack::totalFundNodes, NlTrack::totalObjects, SegmentNodes::totalRASCs, NlTrack::totalSegment, NlTrack::totalSegments, NlTrack::totalTrees, NlTrack::totalTubes, NlTrack::trackClosedCircuit, NlTrack::trackCrosstieColor, SEGMSegment::trackCrosstileColor, NlTrack::trackMode, SEGMSegment::trackRailColor, NlTrack::trackRailColor, SEGMSegment::trackSpineColor, NlTrack::trackSpineColor, NlTrack::train, NlTrack::trainColor, Train::trainColor, NlTrack::trainGearColor, NlTrack::trainRestraintColor, NlTrack::trainSeatColor, SEGMSegment::transport, SegmentBreak::transportAccel, SegmentStation::transportAccel, SegmentBreak::transportDecel, SegmentStation::transportDecel, SegmentBreak::transportSpeed, SegmentStation::transportSpeed, SegmentTransport::transportStyle, SegmentBreak::transportType, SegmentStation::transportType, TRCK, NlTrack::trcksize, NlTrack::trees, Tree::treeType, SegmentBreak::triggerPos, TUBE, NlTrack::tubes, NlTrack::tubesize, Tube::tubeType, NlTrack::tunnelColor, SegmentNode::type, SEGMSegment::type, NlTrack::use16friction, Train::useIndividualColor, SegmentStation::useLaunch, SegmentStation::usePreBrake, FundNode::useRotationValue, FundNode::useSizeValue, SegmentBreak::useTransport, SegmentStation::useTransportation, SEGMSegment::useTunnel, NlTrack::useTunnelColor, NlTrack::useWaves, SegmentStation::waitAvg, SegmentStation::waitDev, SegmentStation::waitMax, SegmentStation::waitMin, NlTrack::waterReflectiveness, NlTrack::waterTextureFilename, and NlTrack::waveScale.
Referenced by main().
int NlSave | ( | char * | filename, | |
NlTrack * | Track | |||
) |
References SCOBObject::_11, SCOBObject::_12, SCOBObject::_13, SCOBObject::_14, SCOBObject::_21, SCOBObject::_22, SCOBObject::_23, SCOBObject::_24, SCOBObject::_31, SCOBObject::_32, SCOBObject::_33, SCOBObject::_34, SCOBObject::_41, SCOBObject::_42, SCOBObject::_43, SCOBObject::_44, SegmentTransport::accel, SegmentLift::accel, NlTrack::authorComments, NlTrack::beziers, BEZR, NlTrack::bezrsize, SegmentBreak::blockSegment, SEGMSegment::breaks, CATW, NlTrack::catwalks, Catwalk::catwalkType, NlTrack::catwsize, NlTrack::chunkscen, SegmentBreak::completeStop, Bezier::continuesRoll, Bezier::cp1X, Bezier::cp1Y, Bezier::cp1Z, Bezier::cp2X, Bezier::cp2Y, Bezier::cp2Z, SegmentNodes::data, SegmentBreak::decel, SegmentTransport::decel, SegmentLift::decel, NlTrack::detailTextureFilename, SCOBObject::dummyString, NlTrack::enableWater, SegmentStation::entranceSide, ENVC, NlTrack::envcsize, NlTrack::envFilename, Bezier::equalDistanceCP, Catwalk::flags, Tube::flags, FreeNode::flags, FundNode::flags, SegmentLift::flags, SEGMSegment::flags, Catwalk::fn1index, Catwalk::fn2index, Catwalk::fn3index, Catwalk::fn4index, NlTrack::freeNodes, FREN, NlTrack::frensize, FUND, NlTrack::fundNodes, NlTrack::fundsize, FundNode::fundType, Train::gearColor, NlTrack::groundTextureFilename, SegmentStation::hideBreaks, SegmentBreak::hyster, SEGMSegment::individualTrackColor, INFO, NlTrack::infosize, SegmentBreak::launch, SegmentBreak::launchAccel, SegmentStation::launchAccel, SEGMSegment::lift, SegmentLift::liftStyle, SegmentStation::mainBrakeDecel, NlTrack::major, NlTrack::markup, NlTrack::minor, Tube::n1index, Tube::n1segIndex, Tube::n1type, Tube::n2index, Tube::n2segIndex, Tube::n2type, SegmentBreak::newTriggerBehaviour, NLIM, NlTrack::nlimsize, NlTrack::numBeziers, NlTrack::numCars, NlTrack::numDetailTextureRepeats, NlTrack::numGroundTextureRepeats, SegmentStation::numPasses, NlTrack::numTrains, NlTrack::numWaterTextureRepeats, SCOBObject::objectFilename, NlTrack::objects, SegmentNode::pos, Tree::posX, FreeNode::posX, FundNode::posX, Bezier::posX, Tree::posY, FreeNode::posY, FundNode::posY, Bezier::posY, Tree::posZ, FreeNode::posZ, FundNode::posZ, Bezier::posZ, SegmentStation::preBrakeDecel, SegmentStation::preBrakeHyster, SegmentStation::preBrakeSpeedLimit, SegmentBreak::railingLeft, SegmentTransport::railingLeft, SegmentLift::railingLeft, SegmentBreak::railingRight, SegmentTransport::railingRight, SegmentLift::railingRight, RASC, NlTrack::rascsize, Bezier::relativeRoll, SkipByte::reserved, NlTrack::reserved, NlTrack::reserved0, NlTrack::reserved1, NlTrack::reserved2, NlTrack::reserved3, NlTrack::reservedString, Train::restraintColor, SegmentStation::reverseCableLift, NlTrack::revision, Bezier::roll, Tree::rotation, Tube::rotation, FundNode::rotation, NlTrack::scaleX, NlTrack::scaleZ, SCEN, NlTrack::scensize, SCOB, NlTrack::scobsize, NlTrack::seaLevel, Train::seatColor, NlTrack::seg, SEGM, SEGMENT_BREAK, SEGMENT_LIFT, SEGMENT_NORMAL, SEGMENT_STATION, SEGMENT_TRANSPORT, NlTrack::segmsize, NlTrack::segs, FundNode::size, SEGMSegment::size, NlTrack::sizeX, NlTrack::sizeZ, Catwalk::skipByteCount, Catwalk::skipBytes, SegmentTransport::speed, SegmentLift::speed, SegmentTransport::speedDown, SegmentTransport::speedDownSpeedLimit, SegmentBreak::speedLimit, SegmentTransport::speedUpPasses, SEGMSegment::station, SegmentStation::stationHidden, SegmentStation::stationType, SegmentBreak::stopWaitTime, NlTrack::style, SUPP, NlTrack::supportsColor, NlTrack::suppsize, SegmentStation::sync, TERA, NlTrack::terasize, NlTrack::terrainHeight, Train::textureFilename, NlTrack::totalCatwalks, NlTrack::totalFreeNodes, NlTrack::totalFundNodes, NlTrack::totalObjects, SegmentNodes::totalRASCs, NlTrack::totalSegment, NlTrack::totalSegments, NlTrack::totalTrees, NlTrack::totalTubes, NlTrack::trackClosedCircuit, NlTrack::trackCrosstieColor, SEGMSegment::trackCrosstileColor, NlTrack::trackMode, SEGMSegment::trackRailColor, NlTrack::trackRailColor, SEGMSegment::trackSpineColor, NlTrack::trackSpineColor, NlTrack::train, NlTrack::trainColor, Train::trainColor, NlTrack::trainGearColor, NlTrack::trainRestraintColor, NlTrack::trainSeatColor, SEGMSegment::transport, SegmentBreak::transportAccel, SegmentStation::transportAccel, SegmentBreak::transportDecel, SegmentStation::transportDecel, SegmentBreak::transportSpeed, SegmentStation::transportSpeed, SegmentTransport::transportStyle, SegmentBreak::transportType, SegmentStation::transportType, TRCK, NlTrack::trcksize, NlTrack::trees, Tree::treeType, SegmentBreak::triggerPos, TUBE, NlTrack::tubes, NlTrack::tubesize, Tube::tubeType, NlTrack::tunnelColor, SegmentNode::type, SEGMSegment::type, NlTrack::use16friction, Train::useIndividualColor, SegmentStation::useLaunch, SegmentStation::usePreBrake, FundNode::useRotationValue, FundNode::useSizeValue, SegmentBreak::useTransport, SegmentStation::useTransportation, SEGMSegment::useTunnel, NlTrack::useTunnelColor, NlTrack::useWaves, SegmentStation::waitAvg, SegmentStation::waitDev, SegmentStation::waitMax, SegmentStation::waitMin, NlTrack::waterReflectiveness, NlTrack::waterTextureFilename, NlTrack::waveScale, WriteBool(), WriteByte(), WriteBytes(), WriteColor(), WriteFloat(), WriteInt(), WriteKey(), WriteNull(), and WriteString().
int ReadBool | ( | FILE * | file | ) |
char ReadByte | ( | FILE * | file | ) |
char* ReadBytes | ( | FILE * | file, | |
size_t | length | |||
) |
Referenced by ReadByte(), ReadColor(), ReadInt(), ReadKey(), ReadNull(), and ReadString().
Color ReadColor | ( | FILE * | file | ) |
float ReadFloat | ( | FILE * | file | ) |
int ReadInt | ( | FILE * | file | ) |
int ReadKey | ( | FILE * | file | ) |
void ReadNull | ( | FILE * | file, | |
size_t | length | |||
) |
char* ReadString | ( | FILE * | file, | |
size_t | length | |||
) |
void setAuthorComments | ( | char * | authorComments, | |
NlTrack * | Track | |||
) |
References NlTrack::authorComments.
void setCoasterStyle | ( | int | style, | |
NlTrack * | Track | |||
) |
References NlTrack::style.
int setEnvc | ( | char * | envFilename, | |
char * | reservedString, | |||
NlTrack * | Track | |||
) |
Set the environment filename.
envFilename | the filename of the environment file | |
reservedString | the reserved string of the environment | |
Track | a pointer to the NlTrack |
References NlTrack::envcsize, NlTrack::envFilename, and NlTrack::reservedString.
void setMajor | ( | int | major, | |
NlTrack * | Track | |||
) |
References NlTrack::major.
void setMarkup | ( | int | markup, | |
NlTrack * | Track | |||
) |
References NlTrack::markup.
void setMinor | ( | int | minor, | |
NlTrack * | Track | |||
) |
References NlTrack::minor.
void setNumCars | ( | int | numCars, | |
NlTrack * | Track | |||
) |
References NlTrack::numCars.
void setNumTrains | ( | int | numTrains, | |
NlTrack * | Track | |||
) |
References NlTrack::numTrains.
void setRevision | ( | int | revision, | |
NlTrack * | Track | |||
) |
References NlTrack::revision.
void setSegmentBreak | ( | int | bezierindex, | |
float | speedLimit, | |||
float | decel, | |||
float | hyster, | |||
float | triggerPos, | |||
int | blockSegment, | |||
int | useTransport, | |||
float | transportSpeed, | |||
float | transportAccel, | |||
float | transportDecel, | |||
int | railingLeft, | |||
int | railingRight, | |||
int | completeStop, | |||
char | stopWaitTime, | |||
int | transportType, | |||
int | launch, | |||
float | launchAccel, | |||
int | newTriggerBehaviour, | |||
NlTrack * | Track | |||
) |
References SegmentBreak::blockSegment, SEGMSegment::breaks, SegmentBreak::completeStop, SegmentBreak::decel, SegmentBreak::hyster, SegmentBreak::launch, SegmentBreak::launchAccel, SegmentBreak::newTriggerBehaviour, SegmentBreak::railingLeft, SegmentBreak::railingRight, NlTrack::segs, SegmentBreak::speedLimit, SegmentBreak::stopWaitTime, SegmentBreak::transportAccel, SegmentBreak::transportDecel, SegmentBreak::transportSpeed, SegmentBreak::transportType, SegmentBreak::triggerPos, and SegmentBreak::useTransport.
void setSegmentLift | ( | int | bezierindex, | |
char | liftStyle, | |||
float | speed, | |||
float | accel, | |||
float | decel, | |||
int | railingLeft, | |||
int | railingRight, | |||
int | flags, | |||
NlTrack * | Track | |||
) |
void setSegmentStation | ( | int | bezierindex, | |
float | waitAvg, | |||
float | waitMin, | |||
float | waitMax, | |||
float | waitDev, | |||
char | entranceSide, | |||
char | stationType, | |||
int | sync, | |||
char | stationHidden, | |||
float | mainBrakeDecel, | |||
char | numPasses, | |||
char | reverseCableLift, | |||
int | hideBreaks, | |||
int | usePreBrake, | |||
float | preBrakeSpeedLimit, | |||
float | preBrakeDecel, | |||
float | preBrakeHyster, | |||
int | useTransportation, | |||
float | transportSpeed, | |||
float | transportAccel, | |||
float | transportDecel, | |||
char | transportType, | |||
float | launchAccel, | |||
int | useLaunch, | |||
NlTrack * | Track | |||
) |
References SegmentStation::entranceSide, SegmentStation::hideBreaks, SegmentStation::launchAccel, SegmentStation::mainBrakeDecel, SegmentStation::numPasses, SegmentStation::preBrakeDecel, SegmentStation::preBrakeHyster, SegmentStation::preBrakeSpeedLimit, SegmentStation::reverseCableLift, NlTrack::segs, SEGMSegment::station, SegmentStation::stationHidden, SegmentStation::stationType, SegmentStation::sync, SegmentStation::transportAccel, SegmentStation::transportDecel, SegmentStation::transportSpeed, SegmentStation::transportType, SegmentStation::useLaunch, SegmentStation::usePreBrake, SegmentStation::useTransportation, SegmentStation::waitAvg, SegmentStation::waitDev, SegmentStation::waitMax, and SegmentStation::waitMin.
void setSegmentTransport | ( | int | bezierindex, | |
float | speed, | |||
float | accel, | |||
float | decel, | |||
char | transportStyle, | |||
int | railingLeft, | |||
int | railingRight, | |||
char | speedUpPasses, | |||
char | speedDown, | |||
float | speedDownSpeedLimit, | |||
NlTrack * | Track | |||
) |
References SegmentTransport::accel, SegmentTransport::decel, SegmentTransport::railingLeft, SegmentTransport::railingRight, NlTrack::segs, SegmentTransport::speed, SegmentTransport::speedDown, SegmentTransport::speedDownSpeedLimit, SegmentTransport::speedUpPasses, SEGMSegment::transport, and SegmentTransport::transportStyle.
References NlTrack::trackCrosstieColor.
References NlTrack::trackRailColor.
References NlTrack::trackSpineColor.
References NlTrack::supportsColor.
References NlTrack::trainColor.
References NlTrack::trainGearColor.
References NlTrack::trainRestraintColor.
References NlTrack::trainSeatColor.
References NlTrack::tunnelColor.
void setTrackUseTunnelColor | ( | NlTrack * | Track, | |
int | useTunnelColor | |||
) |
References NlTrack::useTunnelColor.
void setUse16friction | ( | int | use16friction, | |
NlTrack * | Track | |||
) |
References NlTrack::use16friction.
void swap | ( | char * | v1, | |
char * | v2 | |||
) |
Referenced by SwapEndianFloat(), and SwapEndianInt().
void SwapEndianFloat | ( | float * | val | ) |
void SwapEndianInt | ( | int * | val | ) |
float toG | ( | float | index | ) |
float toKmh | ( | float | index | ) |
float toMs | ( | float | index | ) |
float toNewton | ( | float | index | ) |