Haoyan Zhang / Mbed 2 deprecated el17h2z1

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Acid.h Source File

Acid.h

00001 #ifndef ACID_H
00002 #define ACID_H
00003  
00004 #include "mbed.h"
00005 #include "N5110.h"
00006 #include "Gamepad.h"
00007 #include "Boss.h"
00008 /** Acid Class  
00009 * @brief Acid  
00010 * @author Haoyan Zhang  
00011 * @date May, 2020 
00012 */ 
00013 
00014 class Acid
00015 { 
00016 public:
00017        
00018        Acid();
00019        
00020        ~Acid();
00021        
00022        void init(int height,int width,int speed);
00023        
00024        void draw(N5110 &lcd);
00025        
00026        void update();
00027        
00028        void set_velocity(Vector2D v);
00029        
00030        Vector2D get_velocity();
00031        
00032        Vector2D get_pos();
00033        
00034        void set_pos(Vector2D p);
00035        
00036 private:
00037          
00038         Vector2D _velocity;
00039         
00040         Boss _Boss;
00041         
00042         int _height;
00043         
00044         int _width;
00045        
00046         int _x;
00047         
00048         int _y;
00049              
00050 };
00051 #endif
00052 
00053        
00054        
00055        
00056        
00057        
00058        
00059        
00060