Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F627437
ItemEntity.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
ItemEntity.h
View Options
#ifndef ITEMENTITY_H
#define ITEMENTITY_H
#include
"sfml_game/CollidingSpriteEntity.h"
#include
"Items.h"
class
ItemEntity
:
public
CollidingSpriteEntity
{
public
:
ItemEntity
(
enumItemType
itemType
,
float
x
,
float
y
);
void
setMerchandise
(
bool
isMerchandise
);
bool
getMerchandise
();
int
getPrice
();
bool
canBePickedUp
();
void
buy
();
virtual
void
animate
(
float
delay
);
virtual
void
render
(
sf
::
RenderTarget
*
app
);
virtual
void
calculateBB
();
virtual
void
dying
();
enumItemType
getItemType
()
{
return
itemType
;
};
void
startsJumping
();
protected
:
enumItemType
itemType
;
bool
isMerchandise
;
virtual
void
collideMapRight
();
virtual
void
collideMapLeft
();
virtual
void
collideMapTop
();
virtual
void
collideMapBottom
();
bool
isOnMap
();
virtual
void
readCollidingEntity
(
CollidingSpriteEntity
*
entity
);
private
:
float
timer
;
float
jumpTimer
;
bool
isBeating
;
bool
isFlying
;
bool
firstJump
;
float
h
,
hVelocity
;
};
#endif
// ITEMENTITY_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 2:04 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
121050
Default Alt Text
ItemEntity.h (1 KB)
Attached To
Mode
R78 witchblast
Attached
Detach File
Event Timeline