Last change
on this file since 45 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
746 bytes
|
Rev | Line | |
---|
[31] | 1 | #ifdef POSITION |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Entity.h" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | |
---|
[43] | 15 | #undef FUNCTION |
---|
| 16 | #define FUNCTION "Entity::mapping" |
---|
[38] | 17 | void Entity::mapping (uint32_t pos_x, |
---|
| 18 | uint32_t pos_y, |
---|
| 19 | uint32_t size_x , |
---|
| 20 | uint32_t size_y ) |
---|
[31] | 21 | { |
---|
[43] | 22 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 23 | |
---|
[31] | 24 | if (_is_map != false) |
---|
| 25 | throw (ErrorMorpheo ("Entity \""+_name+"\" is already mapped")); |
---|
| 26 | |
---|
| 27 | _is_map = true; |
---|
| 28 | |
---|
| 29 | _map_size_x = size_x; |
---|
| 30 | _map_size_y = size_y; |
---|
| 31 | _map_pos_x = pos_x ; |
---|
| 32 | _map_pos_y = pos_y ; |
---|
[43] | 33 | |
---|
| 34 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[31] | 35 | }; |
---|
| 36 | |
---|
| 37 | }; // end namespace behavioural |
---|
| 38 | }; // end namespace morpheo |
---|
| 39 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.