void HoldSkill::tick() { if (isEnabled()) { setCharge(getCharge() - getReduction()); } else { setCharge(getCharge() + getRecharge()); } }
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); }
worldContainer::worldContainer(coord Location, coord Goal, double Charge, double Base, double HitPoints) { setLocation(Location); setGoal(Goal); setCharge(Charge); setBase(Base); setHitPoints(HitPoints); }
worldContainer::worldContainer() { coord temp; temp.x = 0; temp.y = 0; temp.z = 0; setLocation(temp); setGoal(temp); setHitPoints(0); setCharge(0); setBase(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(); } }
Charge::Charge(double const charge, Vec const& position) : Primitive("Charge") { setCharge(charge); setPosition(position); }
void Geometry::setChargeAndMultiplicity(int const charge, int const multiplicity) { setMultiplicity(multiplicity); setCharge(charge); }