Yufan Zhong / Mbed 2 deprecated GOLD_MINER

Dependencies:   mbed

Gold/Gold.h

Committer:
ZhongYufan
Date:
2020-04-26
Revision:
10:51870f8e2e1a
Parent:
8:c5969685cf02
Child:
12:07a9f2140d9b

File content as of revision 10:51870f8e2e1a:

#ifndef GOLD_H
#define GOLD_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Winch.h"
#include "Monster.h"
#include "time.h"

/** Gold Class
@author Dr Craig A. Evans, University of Leeds
@brief Controls the claw in the Pong game 
@date Febraury 2017
*/ 
class Gold
{

public:
    Gold();
    ~Gold();
    void init(int gold_num);
    void draw(N5110 &lcd);
    void update();
    void gold_caught(int caught_i);
    int get_reached_num();
    int get_left_num();
    /// accessors and mutators
    Vector2D get_pos(int gold_i);
    void set_pos(Vector2D p);
    
private:
    int _gold_num;
    int _gold_left;
    int _gold_caught[12];
    int _gold_reached[12];
    int _x[12];
    int _y[12];
    
};
#endif