Files
tyra-linux/src/samples/dolphin/objects/collectible.hpp
T
2020-12-27 19:49:36 +01:00

35 lines
672 B
C++

/*
# ______ ____ ___
# | \/ ____| |___|
# | | | \ | |
#-----------------------------------------------------------------------
# Copyright 2020, tyra - https://github.com/h4570/tyra
# Licenced under Apache License 2.0
# Michał Mostowik <mostek3pl@gmail.com>
*/
#ifndef _COLLECTIBLE_
#define _COLLECTIBLE_
#include "../camera.hpp"
#include <tamtypes.h>
class Collectible
{
public:
float rotation;
Mesh mesh;
Collectible();
void update();
void disappear();
void setActive(const u8 &b) { bActive = b; }
u8 isActive() { return bActive; }
private:
u8 bActive, bDisappearing;
u8 lift;
};
#endif