GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
FightGame.hh
Go to the documentation of this file.
1
2#include "Effect.hh"
3
15
17{
18 CubeElem cube_a;
19 MatrixElem cube(cube_a, Matrix::Scale(100.0,100.0,100.0));
20 Point head_pos = sm.pos + sm.head;
21 MatrixElem head(cube, Matrix::Translate(head_pos.x, head_pos.y, head_pos.z));
22 Point body_pos = sm.pos + sm.body_center;
23 MatrixElem body(cube, Matrix::Translate(body_pos.x, body_pos.y, body_pos.z));
24 Point left_leg_pos = sm.pos + sm.left_leg;
25 MatrixElem left_leg(cube, Matrix::Translate(left_leg_pos.x, left_leg_pos.y, left_leg_pos.z));
26 Point right_leg_pos = sm.pos + sm.right_leg;
27 MatrixElem right_leg(cube, Matrix::Translate(right_leg_pos.x, right_leg_pos.y, right_leg_pos.z));
28
29 Point left_arm_pos = sm.pos + sm.left_arm;
30 MatrixElem left_arm(cube, Matrix::Translate(left_arm_pos.x, left_arm_pos.y, left_arm_pos.z));
31 Point right_arm_pos = sm.pos + sm.right_arm;
32
33 MatrixElem right_arm(cube, Matrix::Translate(head_pos.x, head_pos.y, head_pos.z));
34
35
36}
void create_obj(State &sm, FaceStore &s)
Definition FightGame.hh:16
void cube(Matrix m, FaceStore &s)
Definition Functions.cc:10
Definition Effect.hh:7500
Definition Effect.hh:5849
Definition Effect.hh:8076
static Matrix Translate(float x, float y, float z)
Definition VectorTools.cc:547
static Matrix Scale(float x, float y, float z)
Definition VectorTools.cc:556
Definition VectorTools.hh:125
Definition Parser.cc:60
float x
Definition Parser.cc:60
float y
Definition Parser.cc:60
float z
Definition Parser.cc:60
Definition FightGame.hh:5
Vector head
Definition FightGame.hh:8
Point pos
Definition FightGame.hh:7
Vector body_center
Definition FightGame.hh:9
Vector left_arm
Definition FightGame.hh:12
Vector left_leg
Definition FightGame.hh:10
Vector right_arm
Definition FightGame.hh:13
Vector right_leg
Definition FightGame.hh:11