ECE2035 Project 2
Dependencies: mbed mbed-rtos SDFileSystem
fruit_private.h
- Committer:
- kwengryn3
- Date:
- 2021-04-20
- Revision:
- 10:1994adcfc86f
- Parent:
- 7:95db0d89fbac
File content as of revision 10:1994adcfc86f:
//================================================================= // The header file defining the fruit module // // Copyright 2020 Georgia Tech. All rights reserved. // The materials provided by the instructor in this course are for // the use of the students currently enrolled in the course. // Copyrighted course materials may not be further disseminated. // This file must not be made publicly available anywhere. //================================================================== #ifndef FRUIT_PRIVATE_H #define FRUIT_PRIVATE_H #include "mbed.h" #include "globals.h" #include "fruit_public.h" //==== [private settings] ==== const int FRUIT_INTERVAL = 30; const int FRUIT_SPEED = 2; const int FRUIT_SIZE = 10; const int PLAYER_SPACE = 20; //==== [private type] ==== //==== [private function] ==== /** Generate a random fruit and add it to the fruit DLL */ void fruit_create(void); /** Iterate over all fruit and update their positions using the rate of motion * and the deltaX and deltaY generated by fruit create */ void fruit_update_position(void); #endif //FRUIT_PRIVATE_H