aboutsummaryrefslogtreecommitdiff
path: root/lib/nodes/physical_with_attributes.js
blob: 4b92748489d9213138350f65ff8837401bd3b7aa (plain)
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
import { Node } from '@serpentity/serpentity';

import AngleComponent from '@serpentity/components.angle';
import BodyComponent from '../components/body';
import PositionComponent from '@serpentity/components.position';

/**
 * Node identifying an entity that can interact with physics and has
 * components updated from its values
 *
 * @extends {external:Serpentity.Node}
 * @class PhysicalWithAttributesNode
 */
export default class PhysicalWithAttributesNode extends Node {

}

/**
 * Holds the types that are used to identify an entity with a physics
 * object and external attributes
 *
 * @property {object} types
 * @name types
 * @memberof PhysicalWithAttributesNode
 */
PhysicalWithAttributesNode.types = {
  angle: AngleComponent,
  position: PositionComponent,
  body: BodyComponent
};