Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. - (IBAction)HpPlusOne:(id)sender {
  2. int counterNow, CounterLater;
  3. counterNow=[_EvTotal intValue];
  4. CounterLater=counterNow+1;
  5. [_EvTotal setIntValue:CounterLater];
  6. int hpNow, hpLater;
  7. hpNow=[_HpTotal intValue];
  8. hpLater=hpNow+1;
  9. [_HpTotal setIntValue:hpLater];
  10.  
  11. }
  12.  
  13. - (IBAction)HpPlusTwo:(id)sender {
  14. int counterNow, CounterLater;
  15. counterNow=[_EvTotal intValue];
  16. CounterLater=counterNow+2;
  17. [_EvTotal setIntValue:CounterLater];
  18. int hpNow, hpLater;
  19. hpNow=[_HpTotal intValue];
  20. hpLater=hpNow+2;
  21. [_HpTotal setIntValue:hpLater];
  22. }
  23.  
  24. - (IBAction)HpPlusTen:(id)sender {
  25. int counterNow, CounterLater;
  26. counterNow=[_EvTotal intValue];
  27. CounterLater=counterNow+10;
  28. [_EvTotal setIntValue:CounterLater];
  29. int hpNow, hpLater;
  30. hpNow=[_HpTotal intValue];
  31. hpLater=hpNow+10;
  32. [_HpTotal setIntValue:hpLater];
  33. }
  34.  
  35. - (IBAction)HpPlusFifty:(id)sender {
  36. int counterNow, CounterLater;
  37. counterNow=[_EvTotal intValue];
  38. CounterLater=counterNow+50;
  39. [_EvTotal setIntValue:CounterLater];
  40. int hpNow, hpLater;
  41. hpNow=[_HpTotal intValue];
  42. hpLater=hpNow+50;
  43. [_HpTotal setIntValue:hpLater];
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement