issues
search
anravalli
/
MonsterChase
A simple hunter/hunted game based on QT just to play around with behavior trees
GNU General Public License v3.0
1
stars
2
forks
source link
Monster Chase #36 - Entities event/action double dispatch
#39
Closed
anravalli
closed
2 years ago
anravalli
commented
2 years ago
Changes:
src/behaviors.cpp: retrieving current monster instance before to call player->collisionWithMonster()
src/monster.cpp/h: model extended health, damage and score points; adedd method inflict/suffer damage
src/player.cpp/h: new collisionWithMonster() interface passing back the monster instance
src/playersm.cc/h: new collisionWithMonster() interface; callback monster entity to inflict/receive damages and get score points
tests/tst_linear_rotation.h: monster model update
tests/tst_perpendicular_direction.h: monster model update
tests/tst_player_collisions.h: temporary commenting invocation of collisionWithMonster()
Changes: