Skip to content

Commit

Permalink
some
Browse files Browse the repository at this point in the history
  • Loading branch information
jonylu7 committed May 16, 2024
1 parent 3f0d5a7 commit 7a8ce33
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,13 @@ set(INCLUDE_FILES


${INCLUDE_DIR}/Mechanics/GameObjectManager.hpp
${INCLUDE_DIR}/Mechanics/NemesisManager.hpp
${INCLUDE_DIR}/Mechanics/GameObjectID.hpp
${INCLUDE_DIR}/Mechanics/CursorSelection.hpp
${INCLUDE_DIR}/Mechanics/Spawn.hpp
${INCLUDE_DIR}/Mechanics/AvatarNavigator.hpp


${INCLUDE_DIR}/App.hpp
${INCLUDE_DIR}/Tile.hpp
${INCLUDE_DIR}/config.hpp
Expand Down
6 changes: 3 additions & 3 deletions include/Avatar/Avatar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Created by nudle on 2024/3/15.
//

#ifndef PRACTICALTOOLSFORSIMPLEDESIGN_DUMMY_HPP
#define PRACTICALTOOLSFORSIMPLEDESIGN_DUMMY_HPP
#ifndef PRACTICALTOOLSFORSIMPLEDESIGN_AVATAR_HPP
#define PRACTICALTOOLSFORSIMPLEDESIGN_AVATAR_HPP
#include "Avatar/AttackAndDamage.hpp"
#include "Avatar/AvatarOrder.hpp"
#include "Avatar/Moving.hpp"
Expand Down Expand Up @@ -89,4 +89,4 @@ class Avatar : public Moving,
private:
GameObjectID m_ID;
};
#endif // PRACTICALTOOLSFORSIMPLEDESIGN_DUMMY_HPP
#endif // PRACTICALTOOLSFORSIMPLEDESIGN_AVATAR_HPP
4 changes: 2 additions & 2 deletions include/Map/MapUtility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class MapUtil {
return {_x * CELL_SIZE.x, _y * CELL_SIZE.y};
}
static float findDistance(glm::vec2 cell1, glm::vec2 cell2) {
float dx = cell2.x-cell1.x;
float dy = cell2.y-cell1.y;
float dx = cell2.x - cell1.x;
float dy = cell2.y - cell1.y;
return sqrt(dx * dx + dy * dy);
}
};
Expand Down
4 changes: 2 additions & 2 deletions include/Mechanics/NemesisManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef PRACTICALTOOLSFORSIMPLEDESIGN_NEMESISMANAGER_HPP
#define PRACTICALTOOLSFORSIMPLEDESIGN_NEMESISMANAGER_HPP
#include "Avatar/Avatar.hpp"
#include "Map/MapUtility.hpp"

class NemesisManager {
Expand Down Expand Up @@ -37,8 +38,7 @@ class NemesisManager {
{
return true;
} else {
// forceMove(hunter,
// m_Nemesis[hunter]->getCurrentCell()); // 向目標移動

return false;
}
}
Expand Down

0 comments on commit 7a8ce33

Please sign in to comment.