ELEC2645 (2018/19) / Mbed 2 deprecated el17apb

Dependencies:   mbed Gamepad N5110

Embed: (wiki syntax)

« Back to documentation index

Pos Struct Reference

Pos Struct Reference

Pos struct for position of moving platforms and spikes. More...

#include <Levels.h>

Data Fields

int x
 x cord of hoz1
int y
 y cord of hoz1
int d
 direction of hoz1 (0 is right, 1 is left)
int c
 counter for hoz1
int l
 length of hoz1
int h
 height of hoz1
int x2
 x cord of hoz2
int y2
 y cord of hoz2
int d2
 direction of hoz2 (0 is right, 1 is left)
int c2
 counter for hoz2
int l2
 length of hoz2
int h2
 length of hoz2
int vx
 x cord of ver1
int vy
 y cord of ver1
int vd
 direction of ver 1 (0 is down, 1 is up)
int vc
 counter for ver1
int vl
 length of ver1
int vh
 height of ver1
int vx2
 x cord of ver2
int vy2
 y cord of ver2
int vd2
 direction of ver2 (0 is down, 1 is up)
int vc2
 counter for ver2
int vl2
 length of ver2
int vh2
 height of ver2
int sx
 x cord of spikes
int sy
 y cord of spikes
int sl
 length of spikes

Detailed Description

Pos struct for position of moving platforms and spikes.

Definition at line 8 of file Levels.h.


Field Documentation

int c

counter for hoz1

Definition at line 13 of file Levels.h.

int c2

counter for hoz2

Definition at line 20 of file Levels.h.

int d

direction of hoz1 (0 is right, 1 is left)

Definition at line 12 of file Levels.h.

int d2

direction of hoz2 (0 is right, 1 is left)

Definition at line 19 of file Levels.h.

int h

height of hoz1

Definition at line 15 of file Levels.h.

int h2

length of hoz2

Definition at line 22 of file Levels.h.

int l

length of hoz1

Definition at line 14 of file Levels.h.

int l2

length of hoz2

Definition at line 21 of file Levels.h.

int sl

length of spikes

Definition at line 40 of file Levels.h.

int sx

x cord of spikes

Definition at line 38 of file Levels.h.

int sy

y cord of spikes

Definition at line 39 of file Levels.h.

int vc

counter for ver1

Definition at line 27 of file Levels.h.

int vc2

counter for ver2

Definition at line 34 of file Levels.h.

int vd

direction of ver 1 (0 is down, 1 is up)

Definition at line 26 of file Levels.h.

int vd2

direction of ver2 (0 is down, 1 is up)

Definition at line 33 of file Levels.h.

int vh

height of ver1

Definition at line 29 of file Levels.h.

int vh2

height of ver2

Definition at line 36 of file Levels.h.

int vl

length of ver1

Definition at line 28 of file Levels.h.

int vl2

length of ver2

Definition at line 35 of file Levels.h.

int vx

x cord of ver1

Definition at line 24 of file Levels.h.

int vx2

x cord of ver2

Definition at line 31 of file Levels.h.

int vy

y cord of ver1

Definition at line 25 of file Levels.h.

int vy2

y cord of ver2

Definition at line 32 of file Levels.h.

int x

x cord of hoz1

Definition at line 10 of file Levels.h.

int x2

x cord of hoz2

Definition at line 17 of file Levels.h.

int y

y cord of hoz1

Definition at line 11 of file Levels.h.

int y2

y cord of hoz2

Definition at line 18 of file Levels.h.