Last change
on this file since 52 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
750 bytes
|
Rev | Line | |
---|
[31] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[42] | 8 | #include "Behavioural/include/Component.h" |
---|
[31] | 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
[43] | 13 | #undef FUNCTION |
---|
| 14 | #define FUNCTION "Component::set_component" |
---|
[42] | 15 | void Component::set_component (Component * component |
---|
| 16 | #ifdef POSITION |
---|
| 17 | ,uint32_t pos_x |
---|
| 18 | ,uint32_t pos_y |
---|
| 19 | ,uint32_t size_x |
---|
| 20 | ,uint32_t size_y |
---|
| 21 | #endif |
---|
| 22 | ) |
---|
[31] | 23 | { |
---|
[43] | 24 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 25 | |
---|
[42] | 26 | Entity * entity = component->_entity; |
---|
[38] | 27 | |
---|
[31] | 28 | _list_component->push_back(entity); |
---|
| 29 | |
---|
[42] | 30 | #ifdef POSITION |
---|
[38] | 31 | entity->mapping( pos_x, pos_y, size_x, size_y); |
---|
[42] | 32 | #endif |
---|
[43] | 33 | |
---|
| 34 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[31] | 35 | }; |
---|
| 36 | |
---|
| 37 | }; // end namespace behavioural |
---|
| 38 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.