-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
69 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/*########################################################################################## | ||
PAX SAPIENTICA Library 💀🌿🌏 | ||
[Planning] 2023 As Project | ||
[Production] 2023 As Project | ||
[Contact Us] wanotaitei@gmail.com https://github.com/AsPJT/PAX_SAPIENTICA | ||
[License] Distributed under the CC0 1.0. https://creativecommons.org/publicdomain/zero/1.0/ | ||
##########################################################################################*/ | ||
|
||
#ifndef PAX_SAPIENTICA_SIMULATION_HUMAN_HPP | ||
#define PAX_SAPIENTICA_SIMULATION_HUMAN_HPP | ||
|
||
/*########################################################################################## | ||
##########################################################################################*/ | ||
|
||
#include <PAX_SAPIENTICA/Simulation/Human.hpp> | ||
|
||
namespace paxs { | ||
template <typename T> | ||
class Human : public Agent<T> { | ||
public: | ||
using Vector2 = paxs::Vector2<T>; | ||
using Environment = paxs::Environment<T>; | ||
|
||
Human(const std::string& id, const std::string& name, const Vector2& pos, const std::uint_least8_t gen, const std::uint_least8_t age, const std::uint_least8_t life_exp, Environment* env) | ||
: Agent<T>(id, name, pos, gen, age, life_exp, env) {} | ||
|
||
bool operator==(const paxs::Human<T>& a) { | ||
return Agent<T>::operator==(a); | ||
} | ||
protected: | ||
|
||
}; | ||
} | ||
|
||
#endif // !PAX_SAPIENTICA_SIMULATION_HUMAN_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/*########################################################################################## | ||
PAX SAPIENTICA Library 💀🌿🌏 | ||
[Planning] 2023 As Project | ||
[Production] 2023 As Project | ||
[Contact Us] wanotaitei@gmail.com https://github.com/AsPJT/PAX_SAPIENTICA | ||
[License] Distributed under the CC0 1.0. https://creativecommons.org/publicdomain/zero/1.0/ | ||
##########################################################################################*/ | ||
|
||
#ifndef PAX_SAPIENTICA_SIMULATION_SIMULATION_CONST_HPP | ||
#define PAX_SAPIENTICA_SIMULATION_SIMULATION_CONST_HPP | ||
|
||
/*########################################################################################## | ||
##########################################################################################*/ | ||
|
||
namespace paxs { | ||
static int pixel_size = 256; | ||
} | ||
|
||
#endif // !PAX_SAPIENTICA_SIMULATION_SIMULATION_CONST_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters