BxVPMMech Class Reference

Inherits BxMech.

Public Member Functions

override void Start ()
override void FixedUpdate ()
 To override the basis update function.
- Public Member Functions inherited from BxMech
void AddSwitch (int slot, int first, int last, int interval=0)
 Specifies a switch to be automatically updated by the mechanics handler.
virtual void GraphicCallBack (int pos, int lastPos)
 Graphic callbacks.
virtual void GraphicCallBack (int pos, int speed, int lastPos)

Static Public Attributes

static int s_MechNo =1
 VPM number of mech.

Protected Member Functions

void VPMMechUpdate ()
- Protected Member Functions inherited from BxMech
void Advance ()
 advance one step depending on mech type
void StaticCheckSwitches ()
void CheckSwitches ()
void AdvanceReverse ()
void AdvanceStopEnd ()
void AdvanceCircle ()
void SolenoidCallBack (int slot, bool state)

Protected Attributes

int m_mechNo =0
 VPM number of this mmech instance.
VPinMameTypeLib.Controller m_controller
 VPM controller handler.
- Protected Attributes inherited from BxMech
bool m_Sol1Activated =false
 Solenoids activation state.
bool m_Sol2Activated =false
int m_Dir =1
- Protected Attributes inherited from BxBehaviour
ImporterParams m_ip = null

Additional Inherited Members

- Public Attributes inherited from BxMech
const int vpmMechOneSol = 0x00
 constants More...
const int vpmMechOneDirSol = 0x10
 (TO TEST) The first solenoid controls the power to the second solenoid controls the direction.
const int vpmMechTwoDirSol = 0x20
 (TO TEST) The first solenoid controls clockwise movement and the second solenoid controls counter-clockwise movement.
const int vpmMechStepSol = 0x40
 (TO TEST) Two solenoids control a step motor
const int vpmMechCircle = 0x00
 (TO TEST) The mechanic moves in a circle and comes back to the starting point
const int vpmMechStopEnd = 0x02
 (TO TEST) The mechanics stops when it reaches either end point.
const int vpmMechReverse = 0x04
 The mechanic moves from one end to the other and then moves back without the motor changing direction.
const int vpmMechLinear = 0x00
 The mechanic moves at a constant speed from one end to the other (default)
const int vpmMechNonLinear = 0x01
 (NOT IMPLEMENTED) The mechanics speed is slow at the endpoints and fast in the middle
const int vpmMechSlow = 0x00
 Normal handler. Updated ~60 times per second. (default)
const int vpmMechFast = 0x80
 (IMPLICIT?) A fast handler. Sometimes required for very fast puls controlled mechanics (e.g. step motors). Update speed is ~240 times per second.
const int vpmMechStepSw = 0x00
 The switches are updated based on mechanincs “step” value (default)
const int vpmMechLengthSw = 0x100
 (NOT IMPLEMENTED) The switches are updated based on mechanics “length” value.
int m_Sol1 =0
 Specifies the solenoids used to control the playfield mechanics.
List< SwitchStepsm_sw = new List<SwitchSteps>()
int m_MType =vpmMechOneSol + vpmMechReverse + vpmMechLinear
 Integer defining the type of mechanics (sample: m_MType = BxMech.vpmMechOneSol + BxMech.vpmMechReverse + BxMech.vpmMechLinear)
int m_Length =0
int m_Steps =10
 The number of the positions reported back by the mechanic handler.
int m_Step =0
int m_LastStep =0
int m_Speed =0
int m_LastSpeed =0
int m_Acc =0
int m_Retardation =0
float m_elapsedTime =0f
float stepTime
- Properties inherited from BxBehaviour
ImporterParams Params [get]

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