Advanced Strategic Command
Functions
accessconstraints-game.cpp File Reference
#include "accessconstraints.h"
#include "containerbase.h"
#include "gamemap.h"
Include dependency graph for accessconstraints-game.cpp:

Go to the source code of this file.

Functions

bool checkModificationConstraints (const ContainerBase *container)
 checks if a modification is allowed under the current circumstances A player may for example not alter other player's units in the game, but in the editor all units may be edited More...
 

Function Documentation

bool checkModificationConstraints ( const ContainerBase container)

checks if a modification is allowed under the current circumstances A player may for example not alter other player's units in the game, but in the editor all units may be edited

Definition at line 25 of file accessconstraints-game.cpp.

References GameMap::actplayer, ContainerBase::getMap(), and ContainerBase::getOwner().