-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFunctions.h
36 lines (32 loc) · 1.46 KB
/
Functions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include "Lunacy/Lunacy.hpp"
using namespace Sexy;
// Load resources in this function. Called only once when the game is started.
void __stdcall GameLoaded(LawnApp*);
// Plants \\
// Called when a new plant is added to the game.
void __stdcall PlantAdded(Plant*);
// Called when a plant is updating (once per frame per plant, iterating through all the plants on the board).
void __stdcall PlantUpdating(Plant*);
// Called when a plant is shooting and should create its projectiles.
void __stdcall PlantShooting(Plant* aPlant, Zombie* Target, int Lane, bool IsSecondary);
// Called when a plant is being drawn on the screen.
void __stdcall PlantDrawing(Plant*, Sexy::Graphics*);
// Zombies \\
// Called when a zombie spawns.
void __stdcall ZombieAdded(Zombie*);
// Called when a zombie is updating.
void __stdcall ZombieUpdating(Zombie*);
// Called when a zombie bites a plant.
void __stdcall ZombieEating(Zombie*, Plant*);
// Called whena zombie is being drawn.
void __stdcall ZombieDrawing(Zombie*, Sexy::Graphics*);
// Projectiles \\
// Called when a new projectile is created.
void __stdcall ProjectileAdded(Projectile*);
// Called when a projectile is updating
void __stdcall ProjectileUpdating(Projectile*);
// Called when a projectile is colliding with a zombie. Zombie could be NULL if it hit the roof.
void __stdcall ProjectileColliding(Projectile*, Zombie*);
// Called when a projectile is being drawn.
void __stdcall ProjectileDrawing(Projectile*, Sexy::Graphics*);