Adonthell  0.4
mapcharacter Class Reference

Representation of characters on a landmap. More...

#include <mapcharacter.h>

Inheritance diagram for mapcharacter:
Collaboration diagram for mapcharacter:

Public Member Functions

 mapcharacter ()
 Default constructor. More...
 
 ~mapcharacter ()
 Destructor. More...
 
void clear ()
 Puts the mapcharacter back to it's post-constructor state. More...
 
string filename () const
 Returns the current file name of the mapcharacter. More...
 
animationget_animation (u_int16 nbr)
 Returns a pointer to an animation corresponding to a movment. More...
 
mapcharacteroperator= (const mapcharacter &m)
 Mapcharacter copy (similar to copy ()). More...
 
void copy (const mapcharacter &src)
 Synonym of operator = to guarantee its access from Python. More...
 
State updating
bool update ()
 Updates the mapcharacter's state and launchs his schedule. More...
 
Drawing methods
void draw (s_int16 x, s_int16 y, const drawing_area *da_opt=NULL, surface *target=NULL) const
 Draw the object on the screen. More...
 
void draw_bubble (s_int16 x, s_int16 y, const drawing_area *da_opt=NULL, surface *target=NULL) const
 
Loading/Saving methods
Note
You can't save mapcharacters with this class.
s_int8 get (igzstream &file)
 Loads a mapcharacter from an opened file. More...
 
s_int8 load (string fname)
 Loads a mapcharacter from it's filename. More...
 
s_int8 put (ogzstream &file) const
 Saves an mapcharacter into an opened file, in game format, with alpha and mask values. More...
 
s_int8 save (string fname) const
 Saves an mapcharacter into an file, in game format, with alpha and mask values. More...
 
State loading/saving methods
s_int8 get_state (igzstream &file)
 Restore the mapcharacter's state from an opened file. More...
 
s_int8 put_state (ogzstream &file) const
 Saves the mapcharacter's state into an opened file. More...
 
Landmap assignment
void set_map (landmap *m)
 Puts the mapcharacter on a landmap. More...
 
void remove_from_map ()
 Removes the mapcharacter from the landmap he was on (if any). More...
 
landmapmymap () const
 Returns a pointer to the landmap the mapcharacter is on. More...
 
High-level control

These methods provide a simple way to control the mapcharacter on the map he's on.

They cover "normal" moves like walking or looking into a direction, plus tests to know whether a move is possible or not.

void stand_north ()
 Look to North. More...
 
void stand_south ()
 Look to South. More...
 
void stand_east ()
 Look to East. More...
 
void stand_west ()
 Look to West. More...
 
void stand ()
 Stand to the current direction. More...
 
bool go_north ()
 Walk to North (if possible). More...
 
bool go_south ()
 Walk to South (if possible). More...
 
bool go_east ()
 Walk to East (if possible). More...
 
bool go_west ()
 Walk to West (if possible). More...
 
bool can_go_north () const
 Returns whether it is possible or not to go to North from the current mapcharacter's position. More...
 
bool can_go_south () const
 Returns whether it is possible or not to go to South from the current mapcharacter's position. More...
 
bool can_go_east () const
 Returns whether it is possible or not to go to East from the current mapcharacter's position. More...
 
bool can_go_west () const
 Returns whether it is possible or not to go to West from the current mapcharacter's position. More...
 
void look_invert (u_int16 p)
 Look at the opposite position of p. More...
 
mapcharacterwhosnext () const
 Return a pointer to the mapcharacter that is right next to this mapcharacter, i.e the mapcharacter that is on the square this mapcharacter is looking at. More...
 
void speak (const string &text)
 
bool is_speaking ()
 
text_bubbleget_bubble ()
 
Low-level controls

If you need to do non-conventionnal or special things (like teleport a character from a position to another), or need to override the walkable mechanism, use these methods.

You are also provided with various informative methods.

void set_offset (s_int8 x, s_int8 y)
 Sets the offset of the mapcharacter on it's current mapsquare. More...
 
void remove_from_pos ()
 Removes the mapcharacter from the place he was on the map. More...
 
void jump_to (u_int16 smap, u_int16 x, u_int16 y, u_int16 pos=NO_MOVE)
 Remove the mapcharacter from it's current place and put him to a new one. More...
 
u_int16 submap () const
 Returns the index of the submap where the mapcharacter is. More...
 
u_int16 posx () const
 Returns the X position of the mapcharacter. More...
 
u_int16 posy () const
 Returns the Y position of the mapcharacter. More...
 
s_int8 offx () const
 Returns the X offset of the mapcharacter. More...
 
s_int8 offy () const
 Returns the Y offset of the mapcharacter. More...
 
u_int16 currentmove () const
 Returns the current move of the mapcharacter. More...
 
bool set_goal (u_int16 x, u_int16 y, u_int16 dir=NO_MOVE)
 
void set_callback (PyObject *callback, PyObject *args=NULL)
 
bool follow_path ()
 
bool goal_reached ()
 
void stop_moving ()
 
void time_callback (string delay, PyObject *cb, PyObject *args=NULL)
 
void time_callback_string (string delay, string cb, PyObject *args=NULL)
 
void set_schedule (string file, PyObject *args=NULL)
 Schedule control. More...
 
string schedule_file () const
 Returns the name of the mapcharacter's current schedule. More...
 
bool is_schedule_activated () const
 Returns whether the schedule is activated or not. More...
 
void set_schedule_active (bool a)
 Sets whether the schedule is active or not. More...
 
bool do_stuff (string method, PyObject *args=NULL)
 Tell the character to do something. More...
 
void set_action (string file, PyObject *args=NULL)
 Action control. More...
 
string action_file () const
 Returns the name of the mapcharacter's current action. More...
 
bool is_action_activated () const
 Returns whether the action is activated or not. More...
 
void set_action_active (bool a)
 Sets whether the action is active or not. More...
 
void launch_action (mapcharacter *requester)
 Run the mapcharacter's action, passing requester as the "requester" parameter for the action's Python script. More...
 
- Public Member Functions inherited from mapsquare_walkable_area
 mapsquare_walkable_area ()
 Default constructor. More...
 
 ~mapsquare_walkable_area ()
 Destructor. More...
 
void clear ()
 Totally clears the area. More...
 
s_int8 get (igzstream &file)
 Loads an area from an opened file. More...
 
s_int8 put (ogzstream &file) const
 Saves an area into an opened file. More...
 
mapsquare_walkable_areaoperator= (const mapsquare_walkable_area &mo)
 Area copy (similar to copy ()). More...
 
void copy (const mapsquare_walkable_area &src)
 Synonym of operator = to guarantee its access from Python. More...
 
u_int16 area_length () const
 Returns the length of the area. More...
 
u_int16 area_height () const
 Returns the height of the area. More...
 
mapsquare_walkableget_square (u_int16 x, u_int16 y) const
 Returns a pointer to a desired square. More...
 
void resize_area (u_int16 nl, u_int16 nh)
 Resize the area. More...
 
u_int16 base_x () const
 Returns the X offset of the base square of this object. More...
 
u_int16 base_y () const
 Returns the Y offset of the base square of this object. More...
 
void set_base (u_int16 nx, u_int16 ny)
 Sets the base square of this object. More...
 
- Public Member Functions inherited from drawable
 drawable ()
 Default constructor. More...
 
virtual ~drawable ()
 Destructor. More...
 
u_int16 length () const
 Returns the length of the drawable. More...
 
u_int16 height () const
 Returns the height of the drawable. More...
 
virtual bool input_update ()
 Virtual input update function, provided for objects which doesn't need one. More...
 
- Public Member Functions inherited from character_base
 character_base ()
 Default constructor. More...
 
 ~character_base ()
 Destructor. More...
 
string get_name () const
 Returns the name of the character. More...
 
string get_id ()
 Returns an unique identifier of the character. More...
 
void set_name (string newname)
 Sets the name of the character. More...
 
u_int32 get_color () const
 Returns the color representing the character. More...
 
void set_color (int c)
 Sets the color representing the character. More...
 
string get_portrait () const
 Returns the current portrait of the character. More...
 
void set_portrait (string fname)
 Sets the current portrait of the character. More...
 
string get_dialogue () const
 Return the file name of the current character's dialog. More...
 
void set_dialogue (string dialogue)
 Sets the dialogue of the character. More...
 
void get_state (igzstream &in)
 Loads the state (attributes) of the character from an opened file. More...
 
void put_state (ogzstream &out)
 Saves the state (ttributes) of the character into an opened file. More...
 
- Public Member Functions inherited from storage
 storage ()
 Default constructor. More...
 
 ~storage ()
 Destructor. More...
 
void set_val (string key, s_int32 value)
 Sets key to value. More...
 
s_int32 get_val (string key)
 Returns the value of a key. More...
 
pair< string, s_int32next ()
 Returns the next (key, value) pair of the storage. More...
 
s_int32operator[] (string key)
 Returns the value of a key. More...
 
iterator begin ()
 Returns an iterator to the beginning of the storage. More...
 
iterator end ()
 Returns an iterator to the end of the storage. More...
 
u_int32 size () const
 Returns the size (number of elements) of the storage. More...
 
- Public Member Functions inherited from event_list
 event_list ()
 Constructor - creates an empty, unpaused event_list. More...
 
virtual ~event_list ()
 Destructor - unregisters and deletes all events owned by this list. More...
 
void clear ()
 Unregisters and deletes all events owned by this list. More...
 
void add_event (event *ev)
 Adds an event to this list. More...
 
void remove_event (event *ev)
 Removes an event from the list. More...
 
eventget_event (const string &id)
 Try to retrieve the event with given id from the list. More...
 
void pause ()
 Disable any events associated with this event_list. More...
 
void resume ()
 Re-enable the events associated with the event_list, thus 'awaking' the object to life again. More...
 
bool is_paused () const
 Check whether the event list is temporarily disabled or not. More...
 
void put_state (ogzstream &out) const
 Save the event_list to a file. More...
 
bool get_state (igzstream &in)
 Loads the event_list from a file and registers all loaded events. More...
 

Friends

class landmap
 

Additional Inherited Members

- Public Types inherited from storage
typedef hash_map< string, s_int32 >::iterator iterator
 Storage iterator, similar to STL iterator. More...
 
- Static Public Member Functions inherited from event_list
static void register_event (u_int8 type, new_event e)
 Register an event for loading. More...
 
- Protected Member Functions inherited from drawable
void set_length (u_int16 l)
 Sets the length of the drawable. More...
 
void set_height (u_int16 h)
 Sets the height of the drawable. More...
 
- Protected Attributes inherited from event_list
std::vector< event * > Events
 List of events. More...
 

Detailed Description

Representation of characters on a landmap.

Like mapobjects, mapcharacters are a set of animations (one for every movment) and a grid of mapsquare_walkables. This grid represents the map area the mapcharacter physically occupies, which means that a mapcharacter can occupies several tiles.

During the execution of Python scripts, some mapcharacter-local variables are available:

  • myself is a pointer to the character holding this mapcharacter (can of course serve as a mapcharacter pointer, as character inheritates from mapcharacter).
  • mymap, if defined, points to the landmap the mapcharacter is on.

These Python variables are available both for schedules and actions.

In supplement, actions have an extra variable available:

  • requester, which points to the mapcharacter that requested the action.

Definition at line 139 of file mapcharacter.h.

Constructor & Destructor Documentation

◆ mapcharacter()

mapcharacter::mapcharacter ( )

Default constructor.

Definition at line 37 of file mapcharacter.cc.

◆ ~mapcharacter()

mapcharacter::~mapcharacter ( )

Destructor.

Definition at line 59 of file mapcharacter.cc.

Member Function Documentation

◆ clear()

void mapcharacter::clear ( )

Puts the mapcharacter back to it's post-constructor state.

Definition at line 67 of file mapcharacter.cc.

◆ filename()

string mapcharacter::filename ( ) const
inline

Returns the current file name of the mapcharacter.

Returns
filename of the mapcharacter.

Definition at line 167 of file mapcharacter.h.

◆ update()

bool mapcharacter::update ( )
virtual

Updates the mapcharacter's state and launchs his schedule.

Reimplemented from drawable.

Definition at line 804 of file mapcharacter.cc.

◆ draw()

void mapcharacter::draw ( s_int16  x,
s_int16  y,
const drawing_area da_opt = NULL,
surface target = NULL 
) const
virtual

Draw the object on the screen.

Parameters
xX position where to draw.
yY position where to draw.
da_optoptional drawing_area to use during the drawing operation.
targetpointer to the surface where to draw the drawable. If NULL, draw on the screen.

Implements mapsquare_walkable_area.

Definition at line 839 of file mapcharacter.cc.

◆ get()

s_int8 mapcharacter::get ( igzstream file)

Loads a mapcharacter from an opened file.

Parameters
filethe opened file from which to load.
Returns
0 in case of success, error code otherwise.

Definition at line 94 of file mapcharacter.cc.

◆ load()

s_int8 mapcharacter::load ( string  fname)

Loads a mapcharacter from it's filename.

Parameters
fnamethe name of the file to load.
Returns
0 in case of success, error code otherwise.

Definition at line 109 of file mapcharacter.cc.

◆ put()

s_int8 mapcharacter::put ( ogzstream file) const

Saves an mapcharacter into an opened file, in game format, with alpha and mask values.

Warning
as the mapcharacter which is saved comes from a screen's depth surface, it will be slightly altered during the save. If you want a class capable of saving mapcharacters with full truecolor quality, use mapcharacter_edit instead.
Parameters
fileopened file where to save into.
Returns
  • 0 in case of success.
  • -1 in case of error.
See also
save ()

Definition at line 127 of file mapcharacter.cc.

◆ save()

s_int8 mapcharacter::save ( string  fname) const

Saves an mapcharacter into an file, in game format, with alpha and mask values.

Warning
as the mapcharacter which is saved comes from a screen's depth surface, it will be slightly altered during the save. If you want a class capable of saving mapcharacters with full truecolor quality, use mapcharacter_edit instead.
Parameters
fnamefile name where to save into.
Returns
  • 0 in case of success.
  • -1 in case of error.
See also
put ()

Definition at line 141 of file mapcharacter.cc.

◆ get_state()

s_int8 mapcharacter::get_state ( igzstream file)

Restore the mapcharacter's state from an opened file.

Parameters
filethe opened file from which to load the state.
Returns
0 in case of success, error code otherwise.

Definition at line 158 of file mapcharacter.cc.

◆ put_state()

s_int8 mapcharacter::put_state ( ogzstream file) const

Saves the mapcharacter's state into an opened file.

Parameters
filethe opened file where to the state.
Returns
0 in case of success, error code otherwise.

Definition at line 218 of file mapcharacter.cc.

◆ set_map()

void mapcharacter::set_map ( landmap m)

Puts the mapcharacter on a landmap.

This methods can only be applied if the mapcharacter isn't on any landmap when it is called, otherwise nothing will occur.

Warning
Be aware that once this methods is called, the mapcharacter has NO position on the landmap. You MUST call jump_to () after this method to actually have placed the character on the map.
Parameters
mpointer to the landmap the mapcharacter should be on.

Definition at line 263 of file mapcharacter.cc.

◆ remove_from_map()

void mapcharacter::remove_from_map ( )

Removes the mapcharacter from the landmap he was on (if any).

Definition at line 272 of file mapcharacter.cc.

◆ mymap()

landmap* mapcharacter::mymap ( ) const
inline

Returns a pointer to the landmap the mapcharacter is on.

Returns
pointer to the landmap the mapcharacter is on (NULL if none).

Definition at line 312 of file mapcharacter.h.

◆ stand_north()

void mapcharacter::stand_north ( )

Look to North.

Definition at line 334 of file mapcharacter.cc.

◆ stand_south()

void mapcharacter::stand_south ( )

Look to South.

Definition at line 340 of file mapcharacter.cc.

◆ stand_east()

void mapcharacter::stand_east ( )

Look to East.

Definition at line 346 of file mapcharacter.cc.

◆ stand_west()

void mapcharacter::stand_west ( )

Look to West.

Definition at line 352 of file mapcharacter.cc.

◆ stand()

void mapcharacter::stand ( )

Stand to the current direction.

Note
This method only serves to abord an expected waking movment.

Definition at line 325 of file mapcharacter.cc.

◆ go_north()

bool mapcharacter::go_north ( )

Walk to North (if possible).

This method asks the mapcharacter to walk one square to North. If the movment isn't possible (non-walkable mapsquare or map limit), the character will stand_north () instead.

Note
Each time update () is called, the mapcharacter will continue advancing, until he reaches the next mapsquare.

Definition at line 491 of file mapcharacter.cc.

◆ go_south()

bool mapcharacter::go_south ( )

Walk to South (if possible).

This method asks the mapcharacter to walk one square to South. If the movment isn't possible (non-walkable mapsquare or map limit), the character will stand_south () instead.

Note
Each time update () is called, the mapcharacter will continue advancing, until he reaches the next mapsquare.

Definition at line 505 of file mapcharacter.cc.

◆ go_east()

bool mapcharacter::go_east ( )

Walk to East (if possible).

This method asks the mapcharacter to walk one square to East. If the movment isn't possible (non-walkable mapsquare or map limit), the character will stand_east () instead.

Note
Each time update () is called, the mapcharacter will continue advancing, until he reaches the next mapsquare.

Definition at line 519 of file mapcharacter.cc.

◆ go_west()

bool mapcharacter::go_west ( )

Walk to West (if possible).

This method asks the mapcharacter to walk one square to West. If the movment isn't possible (non-walkable mapsquare or map limit), the character will stand_west () instead.

Note
Each time update () is called, the mapcharacter will continue advancing, until he reaches the next mapsquare.

Definition at line 533 of file mapcharacter.cc.

◆ can_go_north()

bool mapcharacter::can_go_north ( ) const

Returns whether it is possible or not to go to North from the current mapcharacter's position.

Returns
true if it is possible to go to North, false otherwise.

Definition at line 358 of file mapcharacter.cc.

◆ can_go_south()

bool mapcharacter::can_go_south ( ) const

Returns whether it is possible or not to go to South from the current mapcharacter's position.

Returns
true if it is possible to go to South, false otherwise.

Definition at line 391 of file mapcharacter.cc.

◆ can_go_east()

bool mapcharacter::can_go_east ( ) const

Returns whether it is possible or not to go to East from the current mapcharacter's position.

Returns
true if it is possible to go to East, false otherwise.

Definition at line 425 of file mapcharacter.cc.

◆ can_go_west()

bool mapcharacter::can_go_west ( ) const

Returns whether it is possible or not to go to West from the current mapcharacter's position.

Returns
true if it is possible to go to West, false otherwise.

Definition at line 458 of file mapcharacter.cc.

◆ look_invert()

void mapcharacter::look_invert ( u_int16  p)

Look at the opposite position of p.

This method is usefull for dialogues, when we want two characters to face each other.

Parameters
popposite position of the position to look at. Can be STAND_NORTH, STAND_SOUTH, STAND_EAST or STAND_WEST.

Definition at line 682 of file mapcharacter.cc.

◆ whosnext()

mapcharacter * mapcharacter::whosnext ( ) const

Return a pointer to the mapcharacter that is right next to this mapcharacter, i.e the mapcharacter that is on the square this mapcharacter is looking at.

If no mapcharacter is next to this one, NULL will be returned.

Returns
pointer to the mapcharacter next to this mapcharacter.

Definition at line 701 of file mapcharacter.cc.

◆ set_offset()

void mapcharacter::set_offset ( s_int8  x,
s_int8  y 
)
inline

Sets the offset of the mapcharacter on it's current mapsquare.

Parameters
xX offset.
yY offset.

Definition at line 505 of file mapcharacter.h.

◆ remove_from_pos()

void mapcharacter::remove_from_pos ( )

Removes the mapcharacter from the place he was on the map.

Definition at line 285 of file mapcharacter.cc.

◆ jump_to()

void mapcharacter::jump_to ( u_int16  smap,
u_int16  x,
u_int16  y,
u_int16  pos = NO_MOVE 
)

Remove the mapcharacter from it's current place and put him to a new one.

Parameters
smapindex of the submap to jump to.
xX offset to to.
yY offset to to.
posPosition to adopt once placed.

Definition at line 290 of file mapcharacter.cc.

◆ submap()

u_int16 mapcharacter::submap ( ) const
inline

Returns the index of the submap where the mapcharacter is.

Returns
the index of the submap where the mapcharacter is.

Definition at line 533 of file mapcharacter.h.

◆ posx()

u_int16 mapcharacter::posx ( ) const
inline

Returns the X position of the mapcharacter.

Returns
the X position of the mapcharacter on his map.

Definition at line 544 of file mapcharacter.h.

◆ posy()

u_int16 mapcharacter::posy ( ) const
inline

Returns the Y position of the mapcharacter.

Returns
the Y position of the mapcharacter on his map.

Definition at line 555 of file mapcharacter.h.

◆ offx()

s_int8 mapcharacter::offx ( ) const
inline

Returns the X offset of the mapcharacter.

Returns
the X offset of the mapcharacter on his map.

Definition at line 566 of file mapcharacter.h.

◆ offy()

s_int8 mapcharacter::offy ( ) const
inline

Returns the Y offset of the mapcharacter.

Returns
the Y offset of the mapcharacter on his map.

Definition at line 577 of file mapcharacter.h.

◆ currentmove()

u_int16 mapcharacter::currentmove ( ) const
inline

Returns the current move of the mapcharacter.

Returns
current mapcharacter's move (STAND_NORTH, WALK_SOUTH, etc...).

Definition at line 588 of file mapcharacter.h.

◆ set_schedule()

void mapcharacter::set_schedule ( string  file,
PyObject *  args = NULL 
)

Schedule control.

Assign a schedule to the mapcharacter.

The schedule's filename will be "scripts/schedules/mapcharacters/<file>.py".

Parameters
filename of the schedule to use.
argsPython tuple containing extra arguments passed to the class constructor.
Warning
the args tuple argument MUST ONLY contain strings or integers, as it will be saved with the mapcharacter state by python::put_tuple ().

Definition at line 737 of file mapcharacter.cc.

◆ schedule_file()

string mapcharacter::schedule_file ( ) const
inline

Returns the name of the mapcharacter's current schedule.

Returns
name of the mapcharacter's current schedule.

Definition at line 631 of file mapcharacter.h.

◆ is_schedule_activated()

bool mapcharacter::is_schedule_activated ( ) const
inline

Returns whether the schedule is activated or not.

Returns
true if the schedule is activated, false otherwise.

Definition at line 642 of file mapcharacter.h.

◆ set_schedule_active()

void mapcharacter::set_schedule_active ( bool  a)
inline

Sets whether the schedule is active or not.

Parameters
atrue if the schedule should be activated, false otherwise.

Definition at line 652 of file mapcharacter.h.

◆ do_stuff()

bool mapcharacter::do_stuff ( string  method,
PyObject *  args = NULL 
)

Tell the character to do something.

Will execute the given method of the current schedule with the given arguments.

Parameters
methodThe method of the schedule to call.
argsThe arguments to pass to the method.
Returns
true if the method has been called, false otherwise.

Definition at line 729 of file mapcharacter.cc.

◆ set_action()

void mapcharacter::set_action ( string  file,
PyObject *  args = NULL 
)

Action control.

Assign a action to the mapcharacter.

The action's filename will be "scripts/actions/<file>.py".

Parameters
filename of the action to use.
argsPython tuple containing extra arguments passed to the class constructor.
Warning
the args tuple argument MUST ONLY contain strings or integers, as it will be saved with the mapcharacter state by python::put_tuple ().

Definition at line 773 of file mapcharacter.cc.

◆ action_file()

string mapcharacter::action_file ( ) const
inline

Returns the name of the mapcharacter's current action.

Returns
name of the mapcharacter's current action.

Definition at line 698 of file mapcharacter.h.

◆ is_action_activated()

bool mapcharacter::is_action_activated ( ) const
inline

Returns whether the action is activated or not.

Returns
true if the action is activated, false otherwise.

Definition at line 709 of file mapcharacter.h.

◆ set_action_active()

void mapcharacter::set_action_active ( bool  a)
inline

Sets whether the action is active or not.

Parameters
atrue if the action should be activated, false otherwise.

Definition at line 719 of file mapcharacter.h.

◆ launch_action()

void mapcharacter::launch_action ( mapcharacter requester)

Run the mapcharacter's action, passing requester as the "requester" parameter for the action's Python script.

Parameters
requesterpointer to the mapcharacter that requested the action, which is passed to the Python run () method.

Definition at line 831 of file mapcharacter.cc.

◆ get_animation()

animation* mapcharacter::get_animation ( u_int16  nbr)
inline

Returns a pointer to an animation corresponding to a movment.

Parameters
nbrindex of the animation to get.
Returns
pointer to the nbr animation.

Definition at line 744 of file mapcharacter.h.

◆ operator=()

mapcharacter & mapcharacter::operator= ( const mapcharacter m)

Mapcharacter copy (similar to copy ()).

Attention
Not available from Python. Use copy () from Python instead.
See also
copy ()

Definition at line 863 of file mapcharacter.cc.

◆ copy()

void mapcharacter::copy ( const mapcharacter src)
inline

Synonym of operator = to guarantee its access from Python.

See also
operator =

Definition at line 764 of file mapcharacter.h.


The documentation for this class was generated from the following files: