Skip to content

Instantly share code, notes, and snippets.

@jgigault
Created June 19, 2015 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgigault/c729cec8710a3b34dcc8 to your computer and use it in GitHub Desktop.
Save jgigault/c729cec8710a3b34dcc8 to your computer and use it in GitHub Desktop.
#ifndef NINJATRAP_HPP
# define NINJATRAP_HPP
# include <iostream>
# include "ClapTrap.hpp"
# include "FragTrap.hpp"
# include "ScavTrap.hpp"
# define NJ_HIT_POINTS 60
# define NJ_MAXHIT_POINTS 60
# define NJ_ENERGY_POINTS 120
# define NJ_MAXENERGY_POINTS 120
# define NJ_START_LEVEL 1
# define NJ_MELEE_ATTACK_DAMAGE 60
# define NJ_RANGED_ATTACK_DAMAGE 5
# define NJ_ARMOR 0
# ifndef GAME_NAME
# define GAME_NAME "F4CK-TP"
# endif
# ifndef COLOR_BOLD
# define COLOR_BOLD "\033[37;1m"
# endif
# ifndef COLOR_RED
# define COLOR_RED "\033[48;5;88m"
# endif
# ifndef COLOR_CLEAR
# define COLOR_CLEAR "\033[0m"
# endif
# ifndef COLOR_GREY
# define COLOR_GREY "\033[1;30m"
# endif
# ifndef COLOR_GREEN
# define COLOR_GREEN "\033[44;5m"
# endif
class NinjaTrap : public ClapTrap
{
public:
NinjaTrap(void); // constructor
NinjaTrap(std::string name); // constructor
~NinjaTrap(void); // destructor
NinjaTrap(NinjaTrap const & a); // copy constructor
NinjaTrap & operator=(NinjaTrap const & rhs); // assign operator
void ninjaShoebox(NinjaTrap const & ninja) const;
void ninjaShoebox(ScavTrap & scav) const;
void ninjaShoebox(FragTrap & frag);
};
std::ostream & operator<<(std::ostream & o, NinjaTrap const & i); // insertion operator
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment