added ui, enemy, sounds, fixed anims

This commit is contained in:
h4570
2020-12-06 16:41:40 +01:00
parent 94e4f8ea3a
commit bcad6f7941
12 changed files with 470 additions and 137 deletions
+38
View File
@@ -0,0 +1,38 @@
/*
# ______ ____ ___
# | \/ ____| |___|
# | | | \ | |
#-----------------------------------------------------------------------
# Copyright 2020, tyra - https://github.com/h4570/tyra
# Licenced under Apache License 2.0
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
*/
#ifndef _ENEMY_
#define _ENEMY_
#include <tamtypes.h>
#include "../managers/floor_manager.hpp"
#include <modules/texture_repository.hpp>
/** Player 3D object class */
class Enemy
{
public:
s16 indexOfCurrentFloor;
Enemy(TextureRepository *t_texRepo);
~Enemy();
inline Mesh *getMeshes() const { return meshes; }
inline u8 getMeshesCount() const { return 3; }
inline Vector3 &getPosition() const { return meshes[1].position; }
void kill(const Player &player) const;
void update(const FloorManager &t_floorManager);
private:
/** 0 - head, 1 - body, 2 - weapon */
Mesh *meshes;
};
#endif