|
|
@ -10,6 +10,7 @@ |
|
|
|
#include "DebuffIcon.h" |
|
|
|
#include "DebuffIcon.h" |
|
|
|
#include "CollectionPoint.h" |
|
|
|
#include "CollectionPoint.h" |
|
|
|
#include "MemoryType.h" |
|
|
|
#include "MemoryType.h" |
|
|
|
|
|
|
|
#include "Resources.h" |
|
|
|
|
|
|
|
|
|
|
|
struct Marker{ |
|
|
|
struct Marker{ |
|
|
|
size_t index; |
|
|
|
size_t index; |
|
|
@ -52,7 +53,7 @@ public: |
|
|
|
bool GhostInFogOfWar(); |
|
|
|
bool GhostInFogOfWar(); |
|
|
|
void HideGhost(); |
|
|
|
void HideGhost(); |
|
|
|
vf2d GetGhostPos(); |
|
|
|
vf2d GetGhostPos(); |
|
|
|
void _Update(PixelGameEngine*pge,std::map<Sound,std::unique_ptr<Audio>>&SOUNDS); |
|
|
|
void _Update(PixelGameEngine*pge,std::map<Sound,std::unique_ptr<Audio>>&SOUNDS,Resources&player_resources,Resources&enemy_resources); |
|
|
|
bool IsMoveable(); |
|
|
|
bool IsMoveable(); |
|
|
|
void DrawRangeIndicator(PixelGameEngine*pge,TileTransformedView&game,std::map<Image,std::unique_ptr<Renderable>>&IMAGES); |
|
|
|
void DrawRangeIndicator(PixelGameEngine*pge,TileTransformedView&game,std::map<Image,std::unique_ptr<Renderable>>&IMAGES); |
|
|
|
bool CanInteractWithEnemies(); |
|
|
|
bool CanInteractWithEnemies(); |
|
|
@ -127,6 +128,7 @@ private: |
|
|
|
std::weak_ptr<CollectionPoint>attachTarget; |
|
|
|
std::weak_ptr<CollectionPoint>attachTarget; |
|
|
|
bool willAttachWhenReachingDestination=false; |
|
|
|
bool willAttachWhenReachingDestination=false; |
|
|
|
std::weak_ptr<Unit>self_ptr; |
|
|
|
std::weak_ptr<Unit>self_ptr; |
|
|
|
|
|
|
|
float collectionTime=0; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
struct BasicUnit:Unit{ |
|
|
|
struct BasicUnit:Unit{ |
|
|
|