Highroad Engine v1.3
Public Member Functions | Public Attributes | Protected Attributes | List of all members
MoreMountains.HighroadEngine.PunVehicleController Class Reference

Network vehicle controller. In charge of the network manager for players in game More...

Inheritance diagram for MoreMountains.HighroadEngine.PunVehicleController:
MoreMountains.HighroadEngine.INetworkVehicle

Public Member Functions

virtual void Awake ()
 controller initialisation More...
 
virtual void Start ()
 We initialize photon More...
 
virtual void Update ()
 We synchronize score More...
 
virtual void OnDestroy ()
 
virtual void EnableControls ()
 Enables the controls when vehicle is controlled by a local player More...
 
virtual void DisableControls ()
 Disables the controls when vehicle is is controlled by a local player More...
 
virtual void SetPlayerName (string value)
 Sets the name of the player. More...
 

Public Attributes

string PlayerName
 
int Score
 

Protected Attributes

float SteerValue
 
float GasPedalValue
 
BaseController _controller
 
RaceManager _raceManager
 

Detailed Description

Network vehicle controller. In charge of the network manager for players in game

Member Function Documentation

◆ Awake()

virtual void MoreMountains.HighroadEngine.PunVehicleController.Awake ( )
virtual

controller initialisation

◆ DisableControls()

virtual void MoreMountains.HighroadEngine.PunVehicleController.DisableControls ( )
virtual

Disables the controls when vehicle is is controlled by a local player

◆ EnableControls()

virtual void MoreMountains.HighroadEngine.PunVehicleController.EnableControls ( )
virtual

Enables the controls when vehicle is controlled by a local player

◆ OnDestroy()

virtual void MoreMountains.HighroadEngine.PunVehicleController.OnDestroy ( )
virtual

◆ SetPlayerName()

virtual void MoreMountains.HighroadEngine.PunVehicleController.SetPlayerName ( string  value)
virtual

Sets the name of the player.

Parameters
valueValue.

Implements MoreMountains.HighroadEngine.INetworkVehicle.

◆ Start()

virtual void MoreMountains.HighroadEngine.PunVehicleController.Start ( )
virtual

We initialize photon

◆ Update()

virtual void MoreMountains.HighroadEngine.PunVehicleController.Update ( )
virtual

We synchronize score

Member Data Documentation

◆ _controller

BaseController MoreMountains.HighroadEngine.PunVehicleController._controller
protected

◆ _raceManager

RaceManager MoreMountains.HighroadEngine.PunVehicleController._raceManager
protected

◆ GasPedalValue

float MoreMountains.HighroadEngine.PunVehicleController.GasPedalValue
protected

◆ PlayerName

string MoreMountains.HighroadEngine.PunVehicleController.PlayerName

◆ Score

int MoreMountains.HighroadEngine.PunVehicleController.Score

◆ SteerValue

float MoreMountains.HighroadEngine.PunVehicleController.SteerValue
protected

The documentation for this class was generated from the following file: