-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAbstractBattleCharacter.h
77 lines (53 loc) · 1.71 KB
/
AbstractBattleCharacter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//
// AbstractBattleCharacter.h
// TEORBattleTest
//
// Created by Zach Babb on 5/25/11.
// Copyright 2011 InstantLazer. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AbstractBattleEntity.h"
@class Animation;
@class Image;
@class RuneObject;
@class AbstractBattleEnemy;
@interface AbstractBattleCharacter : AbstractBattleEntity {
int battleLocation;
Animation *currentAnimation;
NSMutableDictionary *knownRunes;
RuneObject *queuedRune;
int queuedRuneNumber;
BOOL currentTurn;
float currentTurnFlashTimer;
NSMutableArray *weaponRuneStones;
NSMutableArray *armorRuneStones;
Image *currentTurnImage;
Image *enduranceMeterImage;
Image *essenceMeterImage;
Image *hpMeterImage;
Image *essenceMeter;
Image *enduranceMeter;
Image *hpMeter;
}
@property (nonatomic, retain) NSMutableDictionary *knownRunes;
@property (nonatomic, assign) BOOL currentTurn;
@property (nonatomic, assign) int queuedRuneNumber;
- (id)initWithBattleLocation:(int)aLocation;
- (void)initBattleAttributes;
- (void)endBattleWithExperience:(int)aExperience;
- (void)battleLocationIs:(int)aLocation;
- (void)relinquishPriority;
- (void)gainPriority;
- (void)updateRuneLocationTo:(CGPoint)aLocation;
- (void)queueRune:(int)aRune;
- (void)youAttackedEnemy:(AbstractBattleEnemy *)aEnemy;
- (void)runeWasPlacedOnEnemy:(AbstractBattleEnemy *)aEnemy;
- (void)runeWasPlacedOnCharacter:(AbstractBattleCharacter *)aCharacter;
- (void)runeAffectedAllCharacters;
- (void)runeAffectedAllEnemies;
- (void)youReceivedWeaponElement:(int)aElement;
- (void)youReceivedShield:(int)aElement;
- (int)calculateAttackDamageTo:(AbstractBattleEnemy *)aEnemy;
- (void)youHaveBeenRevived;
- (void)gainDoubleAttack:(int)aNumber;
@end