float point exception, waiting for debugging
This commit is contained in:
33
src/objects.h
Normal file
33
src/objects.h
Normal 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
|
Reference in New Issue
Block a user