Last change
on this file since 125 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
746 bytes
|
Rev | Line | |
---|
[31] | 1 | #ifdef POSITION |
---|
| 2 | /* |
---|
| 3 | * $Id: Entity_mapping.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 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.