Dumb-ways-to-memorize
2D game
Data Fields
power_t Struct Reference

#include <parsepowerup.h>

Data Fields

char * name
 
void(* UpdateInput )(power_t *self)
 
void(* GetTarg )(entity_t *self, entity_t **targ)
 
void(* UpdateUse )(power_t *power)
 
void(* DoPower )(entity_t *targ, entity_t *info)
 
int uses
 
info_type_t info_type
 
entity_t * target
 
entity_t * info
 

Detailed Description

The structure for our power_up system.

Author
Anthony Rios
Date
3/30/2016

Definition at line 39 of file parsepowerup.h.

Field Documentation

void(* power_t::DoPower) (entity_t *targ, entity_t *info)

The function which does the power_up , called after all the updates

Definition at line 45 of file parsepowerup.h.

void(* power_t::GetTarg) (entity_t *self, entity_t **targ)

The function which calculates who or what is the specified target

Definition at line 43 of file parsepowerup.h.

entity_t* power_t::info

The information that the power_up uses

Definition at line 49 of file parsepowerup.h.

info_type_t power_t::info_type

The type of info the powe up needs

Definition at line 47 of file parsepowerup.h.

char* power_t::name

The name of the power up

Definition at line 41 of file parsepowerup.h.

entity_t* power_t::target

Target for the power_up

Definition at line 48 of file parsepowerup.h.

void(* power_t::UpdateInput) (power_t *self)

The function to update the input for the power_up

Definition at line 42 of file parsepowerup.h.

void(* power_t::UpdateUse) (power_t *power)

The function which updates the power_up

Definition at line 44 of file parsepowerup.h.

int power_t::uses

The number of times this power can get used -

See also
use_type_t

Definition at line 46 of file parsepowerup.h.


The documentation for this struct was generated from the following file: