Minor improvements and make functions const

This commit is contained in:
Pk11
2021-08-27 23:38:46 -05:00
parent 118c9cc93d
commit bda2aab14b
11 changed files with 102 additions and 173 deletions
+2 -2
View File
@@ -54,13 +54,13 @@ public:
/**
* @brief Returns the number of images in the spritesheet
*/
size_t size(void) { return _images.size(); }
size_t size(void) const { return _images.size(); }
/**
* @brief Returns the Image at index
* @param index The Image to get
*/
Image &operator[](size_t index);
Image &operator[](size_t index) const;
};
#endif