Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
CheckCollision.h
00001 #ifndef CHECKCOLLISION_H 00002 #define CHECKCOLLISION_H 00003 00004 // Included Headers ------------------------------------------------------------ 00005 #include "mbed.h" 00006 #include "Position.h" 00007 #include "Weapons.h" 00008 00009 /** CheckCollision class 00010 * @brief Check Collision perant class 00011 * @author Benjamin Evans, University of Leeds 00012 * @date May 2020 00013 */ 00014 class CheckCollision: virtual public Position{ 00015 public: 00016 // Function prototypes ----------------------------------------------------- 00017 00018 /** Checks if bullet collides with a sprite 00019 * @param bullet @details Weapons object 00020 */ 00021 bool check_collision(Weapons bullet); 00022 00023 protected: 00024 // Variables --------------------------------------------------------------- 00025 00026 /** Length of sprite in x direction */ 00027 int sprite_x_length; 00028 00029 /** Length of sprite in y direction */ 00030 int sprite_y_length; 00031 00032 }; 00033 00034 #endif
Generated on Fri Aug 5 2022 06:55:07 by
1.7.2