float point exception, waiting for debugging

This commit is contained in:
2024-06-30 02:51:24 -04:00
parent c5f5f969a4
commit e513e78d1d
32 changed files with 915 additions and 0 deletions

33
src/objects.h Normal file
View File

@ -0,0 +1,33 @@
/*
* CS 246 Final Project
* File: map.h
* Purpose: handles map functionality
*/
#ifndef __OBJECTS_H__
#define __OBJECTS_H__
#include <vector>
#include <memory>
#include "layer.h"
#include "display.h"
class object {
// TODO: design the entire class
public:
void print() {} // use ncurses
void print(display &display) {}
};
// TODO: throw potion into another header
class potion final: public object {
// TODO: design the entire class
};
class potion_list final: public layer {
private:
std::vector<std::unique_ptr<potion>> potions;
// TODO: design the entire class
};
#endif