Skip to content

Commit

Permalink
[Custom Train Tracks] Added missing files and fixed compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Cazomino05 committed Jul 9, 2013
1 parent 45d1a26 commit e2c5fcb
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MTA10/mods/deathmatch/logic/CClientGame.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ class CClientGame

void SetAllDimensions ( unsigned short usDimension );

static bool StaticKeyStrokeHandler ( const SBindableKey * pKey, bool bState );
bool KeyStrokeHandler ( const SBindableKey * pKey, bool bState );
static void StaticKeyStrokeHandler ( const SBindableKey * pKey, bool bState );
void KeyStrokeHandler ( const SBindableKey * pKey, bool bState );
static bool StaticCharacterKeyHandler ( WPARAM wChar );
bool CharacterKeyHandler ( WPARAM wChar );

Expand Down
35 changes: 35 additions & 0 deletions MTA10/sdk/game/CTrainTrack.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: sdk/game/CTrackTrackManager.h
* PURPOSE: Train Track Interface
* DEVELOPERS: Cazomino05 < Cazomino05@gmail.com >
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
*****************************************************************************/

#ifndef __CTRAINTRACK_H
#define __CTRAINTRACK_H

class CTrainTrack
{
public:
virtual bool SetRailNodePosition ( unsigned int uiNode, CVector vecPosition ) = 0;
virtual bool GetRailNodePosition ( unsigned int uiNode, CVector& vecPosition ) = 0;

virtual bool SetTrackLength ( float fLength ) = 0;
virtual float GetTrackLength ( void ) = 0;

virtual bool SetNumberOfNodes ( unsigned int uiNumberOfNodes ) = 0;
virtual unsigned int GetNumberOfNodes ( void ) = 0;

virtual unsigned char GetTrackID ( void ) = 0;

virtual void SetLastNodesLinked ( bool bLinked ) = 0;

};

#endif
36 changes: 36 additions & 0 deletions MTA10/sdk/game/CTrainTrackManager.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: sdk/game/CTrackTrackManager.h
* PURPOSE: Train Track Manager Interface
* DEVELOPERS: Cazomino05 < Cazomino05@gmail.com >
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
*****************************************************************************/

#ifndef __CTRAINTRACKMANAGER_H
#define __CTRAINTRACKMANAGER_H

class CTrainTrackManager
{
public:
virtual CTrainTrack * GetTrainTrack ( unsigned char ucTrack ) = 0;
virtual void Initialise ( void ) = 0;
virtual void ResetTracks ( void ) = 0;

virtual CTrainTrack * CreateTrainTrack ( unsigned int uiNodes, unsigned char ucTrackID, bool bLinkedLastNodes ) = 0;
virtual bool DestroyTrainTrack ( DWORD dwTrackID ) = 0;

virtual float GetRailLength ( unsigned char ucTrack ) = 0;
virtual DWORD GetNumberOfRailNodes ( unsigned char ucTrack ) = 0;

virtual bool SetRailLength ( unsigned char ucTrack, float fLength ) = 0;
virtual DWORD SetNumberOfRailNodes ( unsigned char ucTrack, DWORD dwTrackNodes ) = 0;

virtual bool IsValid ( unsigned char ucTrack ) = 0;
};

#endif

0 comments on commit e2c5fcb

Please sign in to comment.