GOOC - Game Oriented Object C

GOOC - Game Oriented Object C

Next: Statements, Previous: Integers & Fixed-Point Arithmetic, Up: Top
[Contents]

7. Expressions and Operators

7. Expressions and Operators

An expression consists of at least one operand and zero or more operators. Operands are typed objects such as constants, variables, and instructions that return values. Here are some examples: 1337.0 2 + 2 spd(400.0)

Parentheses group subexpressions: ((1920.0 + 10.0 * (64.0*((abs(player->x - parent->x)/400 << 8)/(4m/400)) >> 16)) >> 8) Innermost expressions are evaluated first. The outermost parentheses are optional.