Project Alice
Loading...
Searching...
No Matches
diplomatic_messages.cpp File Reference
#include "diplomatic_messages.hpp"
#include "system_state.hpp"
#include "commands.hpp"
#include "nations.hpp"
#include "ai.hpp"
Include dependency graph for diplomatic_messages.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  diplomatic_message
 

Functions

void diplomatic_message::decline (sys::state &state, message const &m)
 
bool diplomatic_message::can_accept_crisis_offer (sys::state &state, dcon::nation_id from, dcon::nation_id to, sys::full_wg offer)
 
void diplomatic_message::add_to_crisis_with_offer (sys::state &state, dcon::nation_id from, dcon::nation_id to, sys::full_wg offer)
 
bool diplomatic_message::can_accept_crisis_peace_offer (sys::state &state, dcon::nation_id from, dcon::nation_id to, dcon::peace_offer_id peace)
 
bool diplomatic_message::can_accept (sys::state &state, message const &m)
 
void diplomatic_message::accept (sys::state &state, message const &m)
 
bool diplomatic_message::ai_will_accept (sys::state &state, message const &m)
 Returns the appropriate acceptance evaluation for a given diplomatic message. It is required to define a new case and method for new diplomatic requests. More...
 
void diplomatic_message::post (sys::state &state, message const &m)
 Pushes a diplomatic message to the list of pending diplomatic requests for the specified recipient (m.to), will simply skip and evaluate a response immediately if the recipient is AI-controlled. More...
 
void diplomatic_message::update_pending (sys::state &state)