Last change
on this file since 36 was
31,
checked in by rosiere, 17 years ago
|
Class Position qui encapsule la génération des fichiers de positions
|
File size:
592 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 | |
---|
| 15 | void Entity::mapping (uint32_t size_x, |
---|
| 16 | uint32_t size_y, |
---|
| 17 | uint32_t pos_x , |
---|
| 18 | uint32_t pos_y ) |
---|
| 19 | { |
---|
| 20 | if (_is_map != false) |
---|
| 21 | throw (ErrorMorpheo ("Entity \""+_name+"\" is already mapped")); |
---|
| 22 | |
---|
| 23 | _is_map = true; |
---|
| 24 | |
---|
| 25 | _map_size_x = size_x; |
---|
| 26 | _map_size_y = size_y; |
---|
| 27 | _map_pos_x = pos_x ; |
---|
| 28 | _map_pos_y = pos_y ; |
---|
| 29 | }; |
---|
| 30 | |
---|
| 31 | }; // end namespace behavioural |
---|
| 32 | }; // end namespace morpheo |
---|
| 33 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.