public ActionServoRotation(String description, AX12 servomoteur, speed vitesse, int duration) : base(description) { this.servomoteur = servomoteur; this.duration = duration; this.vitesse = (int)vitesse; }
public void AdjustSpeed() { //comboBox2.SelectedValue ComboboxItem item = (ComboboxItem)comboBox2.SelectedItem; _RenderSpeed = (speed)item.getValue(); }
public MainWindow() { InitializeComponent(); InitComboBoxes(); GrayPulsButtons(); _BoardConfiguration = new BoardConfiguration(105, 25, 100); _RenderSpeed = speed.faster; _UserGameInfoCenter = new UserInfoCenterM(); _UserSteeringConsole = new UserSteeringConsoleM(); }
public int setMovingSpeed(speed vitesse) { m_speed = vitesse; byte len, error = 1; int value = (int)vitesse; if (true) { byte[] buf = { 0x20, (byte)(value), (byte)(value >> 8) }; sendCommand(m_ID, Instruction.AX_WRITE_DATA, buf); Thread.Sleep(100); getReponse(out m_ID, out len, out error, null); } return((int)error); }
public base_personnage(string _name,int _ID,santé _Santé, mana _Mana, energie _Energie, poudre _Poudre, vitess _Vitess, armor _Armor, encaissement _Encaissement, speed _Speed, tenacity _Tenacity, range _Range, damage _Damage, power _Power, life_steal _Life_Steal, vampirisme _Vampirisme, List<tool> _LT) { name = _name; ID = _ID; Santé = _Santé; Mana = _Mana; Energie = _Energie; Poudre = _Poudre; Vitess = _Vitess; Armor = _Armor; encaissement = _Encaissement; Speed = _Speed; Tenacity = _Tenacity; Range = _Range; Damage = _Damage; Power = _Power; Life_Steal = _Life_Steal; Vampirisme = _Vampirisme; List_tool = new List<tool>(); List_tool = _LT; }
public int setMovingSpeed(speed vitesse) { int value = (int)vitesse; return(setMovingSpeed(value)); }
public base_personnage(santé _Santé, mana _Mana, energie _Energie, poudre _Poudre, vitess _Vitess, armor _Armor, encaissement _Encaissement, speed _Speed, tenacity _Tenacity, range _Range, damage _Damage, power _Power, life_steal _Life_Steal, vampirisme _Vampirisme) { }
velocity.Value = Math.Clamp(speed, DefaultGame.MinVelocity, DefaultGame.MaxVelocity) * direction;
/// <summary> /// Rotation RELATIVE par rapport à la position actuelle du servo. /// (Passe en mode wheel si nécessaire) /// </summary> /// <param name="angle">En degrès</param> /// <returns>Durée en ms estimée de la rotation</returns> public void Rotate(speed vitesse, int duration) { Rotate((int)vitesse, duration); }
public int setMovingSpeed(speed vitesse) { m_speed = vitesse; byte len, error = 1; int value = (int)vitesse; if (m_mode == mode.wheel) { byte[] buf = { 0x20, (byte)(value), (byte)(value >> 8) }; send(m_ID, Instruction.AX_WRITE_DATA, buf); Thread.Sleep(100); getReponse(out m_ID, out len, out error, null); } return (int)error; }
public ActionServoRotation BuildActionServoRotation(AX12 servomoteur, speed direction, int duration) { return(new ActionServoRotation(description, servomoteur, direction, duration)); }