Exemplo n.º 1
0
void HoldSkill::tick()
{
	if (isEnabled())
	{
		setCharge(getCharge() - getReduction());
	}
	else
	{
		setCharge(getCharge() + getRecharge());
	}
}
Exemplo n.º 2
0
Arquivo: main.c Projeto: sphincs/LCD
void main()
{
  lcdInit();
  spiOn();
  spiOff();
  sendByte(out);
  sendArray(array);
  lcdOn();
  lcdOff();
  sendBuffer();
  sendPart(3, 7, LCD_Buffer);
  clear();
  clearPart(5, 76);
  clearPartColor(5, 76, clBLACK);
  setPenColor(clBLACK);
  setBackColor(clWHITE);
  delay_nsek(40);
  scsOn();
  scsOff();
  i =  getValue(LCD_Buffer, 23, 266);
  setValue(LCD_Buffer, 23, 266, 0x3F);
  setCharge();
  resetCharge();
  drawPixel(5, 5, LCD_Buffer);
  drawVLine(5, 5, 5, LCD_Buffer);
  drawHLine(5, 5, 5, LCD_Buffer);
  drawLine(5, 5, 55, 55, LCD_Buffer);
  drawRect(5, 5, 55, 55, LCD_Buffer);
  drawFillRect(5, 5, 55, 55, clWHITE, LCD_Buffer);
  drawCircle(10, 10, 5, LCD_Buffer);
}
Exemplo n.º 3
0
 worldContainer::worldContainer(coord Location, coord Goal, double Charge, double Base, double HitPoints)
 {
    setLocation(Location);
    setGoal(Goal);
    setCharge(Charge);
    setBase(Base);
    setHitPoints(HitPoints);
 }
Exemplo n.º 4
0
 worldContainer::worldContainer()
 {
    coord temp;
    temp.x = 0;
    temp.y = 0;
    temp.z = 0;
    setLocation(temp);
    setGoal(temp);
    
    setHitPoints(0);
    setCharge(0);
    setBase(0);
 }
Exemplo n.º 5
0
void SMSClient::charge(bool bCharge, unsigned capacity)
{
    bool bChange = false;
    if (bCharge != getCharging()){
        bChange = true;
        setCharging(bCharge);
    }
    if (capacity != getCharge()){
        bChange = true;
        setCharge(capacity);
    }
    if (bChange){
        Event e(EventClientChanged, this);
        e.process();
    }
}
Exemplo n.º 6
0
Charge::Charge(double const charge, Vec const& position) : Primitive("Charge")
{
   setCharge(charge);
   setPosition(position);
}
Exemplo n.º 7
0
void Geometry::setChargeAndMultiplicity(int const charge, int const multiplicity)
{
   setMultiplicity(multiplicity);
   setCharge(charge);
}